Liking cljdoc? Tell your friends :D

pathological.paths


->absolute-pathclj

(->absolute-path path)
source

->fileclj

(->file path)
source

->real-pathclj

(->real-path path & options)
source

->uriclj

(->uri path)
source

absolute?clj

(absolute? path)
source

ends-with?cljmultimethod

source

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.
sourceraw 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)
sourceraw 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.
sourceraw docstring

matches?clj

(matches? path syntax-and-pattern)
source

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.
sourceraw 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.
sourceraw docstring

namesclj

(names path)

Returns a seq over all of 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 of the name elements in the `path`, iterating
forwards through the path from the root component.

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

normalizeclj

(normalize path)
source

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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

relativizeclj

(relativize base-path path)
source

resolvecljmultimethod

source

resolve-siblingcljmultimethod

source

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.
sourceraw docstring

starts-with?cljmultimethod

source

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.
sourceraw docstring

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

× close