Path manipulation functions
Path manipulation functions
(as-file path-like)
(as-path x)
Coerce argument to a Path.
Coerce argument to a Path.
(filename path-like)
Return the filename segment of the given path as a Path.
Return the filename segment of the given path as a 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.
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-with-extension path-like extension)
Return the path with extension added to it. The extension is a string, including any required dot.
Return the path with extension added to it. The extension is a string, including any required dot.
(path? x)
Predicate for x being a Path object.
Predicate for x being a Path object.
(relative-to root)
Return a function that will return its argument path relative to the given root.
Return a function that will return its argument path relative to the given root.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close