(create-dirs dir-path & file-attrs)Create directories including parent dirs. file-attrs are FileAttribute
Create directories including parent dirs. file-attrs are `FileAttribute`
(create-temp-dir)(create-temp-dir prefix attrs)Returns a Path object.
Returns a Path object.
(create-temp-file)(create-temp-file file-name)(create-temp-file dir file-name)(create-temp-file dir file-name attrs)Returns a Path object. file-name can't have a '/' in it
Returns a Path object. file-name can't have a '/' in it
(delete file-path)Delete a file or if directory recursively delete the directory.
Delete a file or if directory recursively delete the directory.
(directory? path & link-opts)path is an instance of java.nio.file.Path
path is an instance of java.nio.file.Path
One arg takes a file name, Path or File object.
One arg takes a file name, Path or File object.
(input-stream file-path & open-opts)open-opts are OpenOption
open-opts are `OpenOption`
(move src dest & copy-opts)copy-opts are fs/overwrite
copy-opts are fs/overwrite
(normalize-open-options opts)returns a set of StandardOpenOption from an input of opts which contains keywords
returns a set of StandardOpenOption from an input of opts which contains keywords
(open file-path)(open file-path open-opts)(open file-path open-opts file-attrs)open a file
open a file
(output-stream file-path & open-opts)open-opts are OpenOption
open-opts are `OpenOption`
(transfer src-chan dest-chan)(transfer src-chan dest-chan buffer-size)Transfers bytes from src-chan to dest-chan. dest-chan should be a WriteableByteChannel.
Transfers bytes from src-chan to dest-chan. dest-chan should be a WriteableByteChannel.
(transfer-from src-chan dest-chan)(transfer-from src-chan dest-chan position)(transfer-from src-chan dest-chan position max-count)Transfer bytes from src-chan to dest-chan.
src-chan is a ReadableByteChannel.
Transfer bytes from `src-chan` to `dest-chan`. `src-chan is a ReadableByteChannel.`
(transfer-to src-chan dest-chan)(transfer-to src-chan dest-chan position)(transfer-to src-chan dest-chan position max-count)Transfer bytes from src-chan to dest-chan.
dest-chan is a WriteableByteChannel
Transfer bytes from `src-chan` to `dest-chan`. dest-chan is a WriteableByteChannel
(write file-path lines open-opts)(write file-path lines char-set open-opts)Writes lines to file. NB. this will automatically insert a newline after each line.
Writes lines to file. NB. this will automatically insert a newline after each line.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |