Liking cljdoc? Tell your friends :D

datoteka.fs

File System helpers.

File System helpers.
raw docstring

*cwd*clj


*home*clj


*os-name*clj


*sep*clj


*system*clj


*tmp-dir*clj


absoluteclj

(absolute path)

Return absolute path.

Return absolute path.
raw docstring

absolute?clj

(absolute? path)

Checks if the provided path is absolute.

Checks if the provided path is absolute.
raw docstring

baseclj

(base path)

Return the base part of a file.

Return the base part of a file.
raw docstring

create-dirclj

(create-dir path)
(create-dir path perms)

Create a new directory.

Create a new directory.
raw docstring

create-tempdirclj

(create-tempdir)
(create-tempdir prefix)

Creates a temp directory on the filesystem.

Creates a temp directory on the filesystem.
raw docstring

create-tempfileclj

(create-tempfile & {:keys [suffix prefix]})

Create a temporal file.

Create a temporal file.
raw docstring

deleteclj

(delete path)

Delete recursiverly a directory or file.

Delete recursiverly a directory or file.
raw docstring

directory?clj

(directory? path)
(directory? path params)

Checks if the provided path is a directory.

Checks if the provided path is a directory.
raw docstring

executable?clj

(executable? path)

Checks if the provided path is executable.

Checks if the provided path is executable.
raw docstring

exists?clj

(exists? path)
(exists? path params)

Check if the provided path exists.

Check if the provided path exists.
raw docstring

extclj

(ext path)

Return the extension part of a file.

Return the extension part of a file.
raw docstring

fileclj

(file path)

Converts the path to a java.io.File instance.

Converts the path to a java.io.File instance.
raw docstring

file?clj

(file? v)

Check if v is an instance of java.io.File

Check if `v` is an instance of java.io.File
raw docstring

hidden?clj

(hidden? path)

Check if the provided path is hidden.

Check if the provided path is hidden.
raw docstring

joinclj

(join base path)
(join base path & more)

Resolve path on top of an other path.

Resolve path on top of an other path.
raw docstring

last-modified-timeclj

(last-modified-time path)
(last-modified-time path params)

link?clj

(link? path)

Checks if the provided path is a link.

Checks if the provided path is a link.
raw docstring

list-dirclj

(list-dir path)
(list-dir path glob)

Return a lazy seq of files and directories found under the provided directory. The order of files is not guarrantied.

NOTE: the seq should be fully realized in order to properly release all acquired resources for this operation. Converting it to vector is an option for do it.

Return a lazy seq of files and directories found under the provided
directory. The order of files is not guarrantied.

NOTE: the seq should be fully realized in order to properly release
all acquired resources for this operation. Converting it to vector
is an option for do it.
raw docstring

make-permissionsclj

(make-permissions expr)

Generate a array of FileAttribute instances generated from rwxr-xr-x kind of expressions.

Generate a array of `FileAttribute` instances
generated from `rwxr-xr-x` kind of expressions.
raw docstring

moveclj

(move src dst)
(move src dst flags)

Move or rename a file to a target file.

By default, this method attempts to move the file to the target file, failing if the target file exists except if the source and target are the same file, in which case this method has no effect. If the file is a symbolic link then the symbolic link itself, not the target of the link, is moved.

This method may be invoked to move an empty directory. When invoked to move a directory that is not empty then the directory is moved if it does not require moving the entries in the directory. For example, renaming a directory on the same FileStore will usually not require moving the entries in the directory. When moving a directory requires that its entries be moved then this method fails (by throwing an IOException).

Move or rename a file to a target file.

By default, this method attempts to move the file to the target
file, failing if the target file exists except if the source and
target are the same file, in which case this method has no
effect. If the file is a symbolic link then the symbolic link
itself, not the target of the link, is moved.

This method may be invoked to move an empty directory. When invoked
to move a directory that is not empty then the directory is moved if
it does not require moving the entries in the directory. For
example, renaming a directory on the same FileStore will usually not
require moving the entries in the directory. When moving a directory
requires that its entries be moved then this method fails (by
throwing an IOException).
raw docstring

nameclj

(name path)

Return a path representing the name of the file or directory, or null if this path has zero elements.

Return a path representing the name of the file or
directory, or null if this path has zero elements.
raw docstring

normalizeclj

(normalize path)

Normalize the path.

Normalize the path.
raw docstring

parentclj

(parent path)

Get parent path if it exists.

Get parent path if it exists.
raw docstring

pathclj

(path fst)
(path fst & more)

Create path from string or more than one string.

Create path from string or more than one string.
raw docstring

path->input-streamclj

(path->input-stream path)

path->output-streamclj

(path->output-stream path)

path?clj

(path? v)

Return true if provided value is an instance of Path.

Return `true` if provided value is an instance of Path.
raw docstring

permissionsclj

(permissions path)
(permissions path params)

Returns the string representation of the permissions of the provided path.

Returns the string representation of the
permissions of the provided path.
raw docstring

readable?clj

(readable? path)

Check if the provided path is readable.

Check if the provided path is readable.
raw docstring

realclj

(real path)
(real path params)

Converts f into real path via Path#toRealPath.

Converts f into real path via Path#toRealPath.
raw docstring

regular-file?clj

(regular-file? path)
(regular-file? path params)

Checks if the provided path is a plain file.

Checks if the provided path is a plain file.
raw docstring

relative?clj

(relative? path)

Check if the provided path is relative.

Check if the provided path is relative.
raw docstring

relativizeclj

(relativize base other)

Returns the relationship between two paths.

Returns the relationship between two paths.
raw docstring

sizeclj

(size path)

Return the file size.

Return the file size.
raw docstring

split-extclj

(split-ext path)

Returns a vector of [^String name ^String extension].

Returns a vector of `[^String name ^String extension]`.
raw docstring

tempfileclj

(tempfile &
          {:keys [suffix prefix max-retries]
           :or {suffix ".tmp" max-retries 1000 prefix "datoteka."}})

Retrieves a candidate tempfile (without creating it).

Retrieves a candidate tempfile (without creating it).
raw docstring

writable?clj

(writable? path)

Check if the provided path is writable.

Check if the provided path is writable.
raw docstring

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

× close