ALPHA - Not yet released

Note: currently only supports .clj files.

Note: no explicit windowa support.

makejack.api.path

Path manipulation functions

absolute?

(absolute? path-like)

Predicate for an absolute path.

as-file

(as-file path-like)

Coercions

protocol

members

as-path

(as-path x)

Coerce argument to a Path.

filename

(filename path-like)

Return the filename segment of the given path as a Path.

parent

(parent path-like)

Return the parent directory of a the given path as a Path

path

(path path-like)(path parent child)(path parent child & more)

Return a java.nio.file.Path, passing each argument to as-path.

Multiple-arg versions treat the first argument as parent and subsequent args as children relative to the parent.

path-for

(path-for & path-components)

path-with-extension

(path-with-extension path-like extension)

Return the path with extension added to it. The extension is a string, including any required dot.

path?

(path? x)

Predicate for x being a Path object.

relative-to

(relative-to root)

Return a function that will return its argument path relative to the given root.