General
92Returns true if `f` represents an absolute path via [Path#isAbsolute](https://docs.oracle.com/en/java/javase/11/docs/api...
functionbabashka.fs
Converts `f` into an absolute `Path` via [Path#toAbsolutePath](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...
functionbabashka.fs
Returns the canonical `Path` for `f` via [File#getCanonicalPath](https://docs.oracle.com/en/java/javase/11/docs/api/java...
functionbabashka.fs
Returns a seq of all components of `f` as paths. i.e.: split on the [[file-separator]].
functionbabashka.fs
Copies `src` file to `dest` dir or file using [Files/copy](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/...
functionbabashka.fs
Copies entire file tree from `src` to `dest`. Creates `dest` if needed using [[create-dirs]], passing it the `:posix-f...
functionbabashka.fs
Creates dir using [Files/createDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Fil...
functionbabashka.fs
Creates directories for `path` using [Files/createDirectories](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...
functionbabashka.fs
Creates empty file at `path` using [Files/createFile](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...
functionbabashka.fs
Create a new `link` (directory entry) for an `existing` file via [Files/createLink](https://docs.oracle.com/en/java/java...
functionbabashka.fs
Create a symbolic `link` to `target` via [Files/createSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/api/j...
functionbabashka.fs
Creates a directory using [Files/createTempDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...
functionbabashka.fs
Creates an empty file using [Files/createTempFile](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...
functionbabashka.fs
Returns creation time of `f` as [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/at...
functionbabashka.fs
Returns current working directory as `Path`
functionbabashka.fs
Deletes `f` using [Files/delete](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#d...
functionbabashka.fs
Deletes `f` if it exists via [Files/deleteIfExists](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/ni...
functionbabashka.fs
Requests delete of file `f` on exit via [File#deleteOnExit](https://docs.oracle.com/en/java/javase/11/docs/api/java.base...
functionbabashka.fs
Deletes a file tree `root` using [[walk-file-tree]]. Similar to `rm -rf`. Does not follow symlinks. `force` ensures r...
functionbabashka.fs
Returns true if `f` is a directory, using [Files/isDirectory](https://docs.oracle.com/en/java/javase/11/docs/api/java.ba...
functionbabashka.fs
Returns `true` if path `this` ends with path `other` via [Path#endsWith](https://docs.oracle.com/en/java/javase/11/docs/...
functionbabashka.fs
Returns executable paths (using the `PATH` environment variable). Same as `(split-paths (System/getenv "PATH"))`.
functionbabashka.fs
Returns true if `f` has is executable via [Files/isExecutable](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...
functionbabashka.fs
Returns true if `f` exists via [Files/exists](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file...
functionbabashka.fs
If `f` begins with a tilde (`~`), expand the tilde to the value of the `user.home` system property. If the `f` begins ...
functionbabashka.fs
Returns the extension of `path` via [[split-ext]].
functionbabashka.fs
Coerces arg(s) into a `File`, combining multiple paths into one. Multiple-arg versions treat the first argument as par...
functionbabashka.fs
Returns the name of the file or directory via [File#getName](https://docs.oracle.com/en/java/javase/11/docs/api/java.bas...
functionbabashka.fs
The system-dependent default name-separator character (as string)
valuebabashka.fs
Converts `ft` [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/attribute/FileTime.h...
functionbabashka.fs
Converts `ft` [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/attribute/FileTime.h...
functionbabashka.fs
Return `attribute` for `path` via [Files/getAttribute](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...
functionbabashka.fs
Returns a vector of paths matching glob `pattern` (on path and filename) relative to `root` dir. Patterns containing `...
functionbabashka.fs
Extracts `gz-file` to `dest` dir. If `dest` dir not specified (or `nil`) defaults to `gz-file` dir. File is extr...
functionbabashka.fs
Gzips `source-file` to `dir/out-file`. Does not store the `source-file` name in the `.gz` file. The `source-file` i...
functionbabashka.fs
Returns true if `f` is hidden via [Files/isHidden](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...
functionbabashka.fs
With no arguments, returns the current value of the `user.home` system property as a `Path`. If a `user` is passed, re...
functionbabashka.fs
Converts `instant` [Instant](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Instant.html) to a...
functionbabashka.fs
Returns last modified time of `f` as a [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/...
functionbabashka.fs
Returns all paths in `dir` as vector. For descending into subdirectories use `glob.` - `glob-or-accept` - a glob st...
functionbabashka.fs
Similar to list-dir but accepts multiple roots in `dirs` and returns the concatenated results. - `glob-or-accept` - a ...
functionbabashka.fs
Returns a vector of paths matching `pattern` (on path and filename) relative to `root` dir. Pattern interpretation is ...
functionbabashka.fs
Converts epoch millis (long) to a [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/...
functionbabashka.fs
Returns seq of regular files (non-directories, non-symlinks) from `file-set` that were modified since the `anchor` path....
functionbabashka.fs
Move or rename dir or file `source` to `target` dir or file via [Files/move](https://docs.oracle.com/en/java/javase/11/d...
functionbabashka.fs
Returns normalize `Path` for `f` via [Path#normalize](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/...
functionbabashka.fs
Returns the owner of file `f` via [Files/getOwner](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio...
functionbabashka.fs
Returns parent of `f`. Akin to `dirname` in bash.
functionbabashka.fs
Coerces arg(s) into a `Path`, combining multiple paths into one. Multiple-arg versions treat the first argument as par...
functionbabashka.fs
The system-dependent path-separator character (as string).
valuebabashka.fs
Converts a set of `PosixFilePermission` `p` to a string.
functionbabashka.fs
Returns posix file permissions for `f`. Use [[posix->str]] to view as a string. Options: * [`:nofollow-links`](/REA...
functionbabashka.fs
Returns contents of file `f` as byte array via [Files/readAllBytes](https://docs.oracle.com/en/java/javase/11/docs/api/j...
functionbabashka.fs
Read all lines from a file `f` via [Files/readAllLines](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/jav...
functionbabashka.fs
Same as [[read-attributes*]] but turns `attributes` for `path` into a map and keywordizes keys. Keywordizing can be ch...
functionbabashka.fs
Reads `attributes` for `path` via [Files/readAttributes](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/ja...
functionbabashka.fs
Reads the target of a symbolic link `path` via [Files/readSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/a...
functionbabashka.fs
Returns true if `f` is readable via [Files/isReadable](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...
functionbabashka.fs
Converts `f` into real `Path` via [Path#toRealPath](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/ni...
functionbabashka.fs
Returns true if `f` is a regular file, using [Files/isRegularFile](https://docs.oracle.com/en/java/javase/11/docs/api/ja...
functionbabashka.fs
Returns true if `f` represents a relative path (in other words, is not [[absolute?]]).
functionbabashka.fs
Returns relative `Path` by comparing `this` with `other` via [Path#relativize](https://docs.oracle.com/en/java/javase/11...
functionbabashka.fs
Returns `root` for `path` as `Path`, or `nil` via [Path#getRoot](https://docs.oracle.com/en/java/javase/11/docs/api/java...
functionbabashka.fs
Returns `true` if `this` is the same file as `other` via [Files/isSamefile](https://docs.oracle.com/en/java/javase/11/do...
functionbabashka.fs
Set `attribute` for `path` to `value` via [Files/setAttribute](https://docs.oracle.com/en/java/javase/11/docs/api/java.b...
functionbabashka.fs
Sets creation time of `f` to time (`epoch millis` or [FileTime](https://docs.oracle.com/en/java/javase/11/docs/api/java....
functionbabashka.fs
Sets last modified time of `f` to `time` (`epoch millis` or [FileTime](https://docs.oracle.com/en/java/javase/11/docs/ap...
functionbabashka.fs
Sets `posix-file-permissions` on `f`. Accepts a string like `"rwx------"` or a set of `PosixFilePermission`.
functionbabashka.fs
Returns the size of a file (in bytes).
functionbabashka.fs
Splits `path` on extension. If provided, a specific extension `ext`, the extension (without dot), will be used for spl...
functionbabashka.fs
Splits a `joined-paths` list given as a string joined by the OS-specific [[path-separator]] into a vec of paths. On UN...
functionbabashka.fs
Returns `true` if path `this` starts with path `other` via [Path#startsWith](https://docs.oracle.com/en/java/javase/11/d...
functionbabashka.fs
Converts a string `s` to a set of `PosixFilePermission`. `s` is a string like `"rwx------"`.
functionbabashka.fs
Strips extension for `path` via [[split-ext]].
functionbabashka.fs
Determines if `f` is a symbolic link via [Files/isSymbolicLink](https://docs.oracle.com/en/java/javase/11/docs/api/java....
functionbabashka.fs
Returns `java.io.tmpdir` property as path.
functionbabashka.fs
Returns path as string with Unix-style file separators (`/`).
functionbabashka.fs
Unzips `zip-file` to `dest` directory (default `"."`). Options: * `:replace-existing` - `true` / `false`: overwri...
functionbabashka.fs
Updates the contents of text file `path` using `f` applied to old contents and `xs`. Returns the new contents. Opti...
functionbabashka.fs
Walks `f` using [Files/walkFileTree](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.ht...
functionbabashka.fs
Returns `Path` to first executable `program` found in `:paths` `opt`, similar to the `which` Unix command. Default for...
functionbabashka.fs
Returns every `Path` to `program` found in ([[exec-paths]]). See [[which]].
functionbabashka.fs
Returns true if OS is Windows.
functionbabashka.fs
Evaluates body with binding-name bound to the result of `(create-temp-dir options)`. See [[create-temp-dir]] for valid...
macrobabashka.fs
Returns true if `f` is writable via [Files/isWritable](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java...
functionbabashka.fs
Writes `bytes` to `path` via [Files/write](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Fi...
functionbabashka.fs
Writes `lines`, a seqable of strings to `path` via [Files/write](https://docs.oracle.com/en/java/javase/11/docs/api/java...
functionbabashka.fs
Path representing the base directory relative to which user-specific non-essential data files should be stored as descri...
functionbabashka.fs
Path representing the base directory relative to which user-specific configuration files should be stored as described i...
functionbabashka.fs
Path representing the base directory relative to which user-specific data files should be stored as described in the [XD...
functionbabashka.fs
Path representing the base directory relative to which user-specific state files should be stored as described in the [X...
functionbabashka.fs
Zips entry or `entries` into `zip-file`. An entry may be a file or directory. Directories are included recursively and...
functionbabashka.fs