Liking cljdoc? Tell your friends :D

pathological.paths


->absolute-pathclj

(->absolute-path path)

->fileclj

(->file path)

->real-pathclj

(->real-path path & options)

->uriclj

(->uri path)

absolute?clj

(absolute? path)

ends-with?cljmultimethod


file-nameclj

(file-name path)

Returns the file or directory name for the path, i.e., the name element furthers to the right, as a Path instance.

Returns null if there is no file or directory name.

See the Java documentation for more details.

Returns the file or directory name for the `path`, i.e., the name element
furthers to the right, as a
[Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html)
instance.

Returns `null` if there is no file or directory name.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#getFileName%28%29)
for more details.
raw docstring

file-storeclj

(file-store path)

Returns the FileStore on which the path is stored.

See the Java documentation

Returns the [FileStore](https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileStore.html)
on which the `path` is stored.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#getFileStore%28java.nio.file.Path%29)
raw docstring

file-systemclj

(file-system path)

Returns the FileSystem associated with the path.

See the Java documentation for more details.

Returns the [FileSystem](https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html)
associated with the `path`.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#getFileSystem%28%29)
for more details.
raw docstring

matches?clj

(matches? path syntax-and-pattern)

nameclj

(name path index)

Returns the name element in the path at the index.

index represents the offset of the name element from the root and must be non-negative and less than the number of elements or an IllegalArgumentException is thrown.

See the Java documentation for more details.

Returns the name element in the `path` at the `index`.

`index` represents the offset of the name element from the root and must be
non-negative and less than the number of elements or an
[IllegalArgumentException](...) is thrown.

See [the Java documentation](...)
for more details.
raw docstring

name-countclj

(name-count path)

Returns the number of name elements in the path.

Returns 0 if the path is a root component.

See the Java documentation for more details.

Returns the number of name elements in the `path`.

Returns `0` if the `path` is a root component.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#getFileName%28%29)
for more details.
raw docstring

namesclj

(names path)

Returns a seq over all the name elements in the path, iterating forwards through the path from the root component.

See the Java documentation for more details.

Returns a seq over all the name elements in the `path`, iterating
forwards through the path from the root component.

See [the Java documentation](...)
for more details.
raw docstring

normalizeclj

(normalize path)

parentclj

(parent path)

Returns the parent path for the path, i.e., the path without the name element furthest to the right, as a Path instance.

Returns null if there is no parent path.

See the Java documentation for more details.

Returns the parent path for the `path`, i.e., the path without the name
element furthest to the right, as a
[Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html)
instance.

Returns `null` if there is no parent path.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#getParent%28%29)
for more details.
raw docstring

pathclj

(path & [pathable & names])

Creates a Path instance.

Receives a Pathable instance and zero or more path name elements. By default, Pathable is implemented on:

  • FileSystem: in which case the name elements constitute the full path on the provided file system,
  • Path: in which case the name elements are appended to the path retaining the file system from the path,
  • String: in which case the name elements are appended to the path represented by the string, using pathological.file-systems/*file-system* as the file system for the path,
  • URI: in which case the scheme of the URI is used to look up the file system in the installed providers and the name elements are appended to the URI to determine the path.
Creates a [Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html)
instance.

Receives a [[Pathable]] instance and zero or more path name elements. By
default, [[Pathable]] is implemented on:

  - [FileSystem](https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html):
    in which case the name elements constitute the full path on the provided
    file system,
  - [Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html):
    in which case the name elements are appended to the path retaining the
    file system from the path,
  - [String](https://docs.oracle.com/javase/7/docs/api/java/lang/String.html):
    in which case the name elements are appended to the path represented by
    the string, using [[pathological.file-systems/*file-system*]] as the file
    system for the path,
  - [URI](https://docs.oracle.com/javase/7/docs/api/java/net/URI.html): in
    which case the scheme of the URI is used to look up the file system in
    the installed providers and the name elements are appended to the URI
    to determine the path.
raw docstring

Pathablecljprotocol

A protocol for converting things to Paths.

Used by path with default implementations for:

See path for more details.

A protocol for converting things to [Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html)s.

Used by [[path]] with default implementations for:

  - [FileSystem](https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystem.html),
  - [Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html),
  - [String](https://docs.oracle.com/javase/7/docs/api/java/lang/String.html),
  - [URI](https://docs.oracle.com/javase/7/docs/api/java/net/URI.html)

See [[path]] for more details.

->pathclj

(->path this names)

Produces a path for the instance and sequence of path name elements.

Produces a path for the instance and sequence of path name elements.
raw docstring

relativizeclj

(relativize base-path path)

resolvecljmultimethod


resolve-siblingcljmultimethod


rootclj

(root path)

Returns the root component of the path as a Path instance.

Returns null if there is no root component.

See the Java documentation for more details.

Returns the root component of the `path` as a
[Path](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html)
instance.

Returns `null` if there is no root component.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#getRoot%28%29)
for more details.
raw docstring

starts-with?cljmultimethod


subpathclj

(subpath path from to)

Returns the subpath within path between the from index inclusive and the to index exclusive.

See the Java documentation for more details.

Returns the subpath within `path` between the `from` index inclusive and the
`to` index exclusive.

See [the Java documentation](https://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.html#subpath%28int,%20int%29)
for more details.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close