Liking cljdoc? Tell your friends :D

datoteka.core

File System helpers.

File System helpers.
raw docstring

*cwd*clj

source

*home*clj

source

*no-follow*clj

source

*os-name*clj

source

*sep*clj

source

*system*clj

source

*tmp-dir*clj

source

absolute?clj

(absolute? path)

Checks if the provided path is absolute.

Checks if the provided path is absolute.
sourceraw docstring

create-dirclj

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

Create a new directory.

Create a new directory.
sourceraw docstring

create-tempdirclj

(create-tempdir)
(create-tempdir prefix)

Creates a temp directory on the filesystem.

Creates a temp directory on the filesystem.
sourceraw docstring

create-tempfileclj

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

Create a temporal file.

Create a temporal file.
sourceraw docstring

deleteclj

(delete path)

Delete recursiverly a directory or file.

Delete recursiverly a directory or file.
sourceraw docstring

directory?clj

(directory? path)

Checks if the provided path is a directory.

Checks if the provided path is a directory.
sourceraw docstring

executable?clj

(executable? path)

Checks if the provided path is executable.

Checks if the provided path is executable.
sourceraw docstring

exists?clj

(exists? path)

Check if the provided path exists.

Check if the provided path exists.
sourceraw docstring

extclj

(ext path)

Return the extension part of a file.

Return the extension part of a file.
sourceraw docstring

fileclj

(file path)

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

Converts the path to a java.io.File instance.
sourceraw 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
sourceraw docstring

hidden?clj

(hidden? path)

Check if the provided path is hidden.

Check if the provided path is hidden.
sourceraw 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.
sourceraw docstring

link?clj

(link? path)

Checks if the provided path is a link.

Checks if the provided path is a link.
sourceraw 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.
sourceraw 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.
sourceraw 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).
sourceraw 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.
sourceraw docstring

normalizeclj

(normalize path)

Normalize the path.

Normalize the path.
sourceraw docstring

parentclj

(parent path)

Get parent path if it exists.

Get parent path if it exists.
sourceraw 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.
sourceraw docstring

path?clj

(path? v)

Return true if provided value is an instance of Path.

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

permissionsclj

(permissions path)

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

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

readable?clj

(readable? path)

Check if the provided path is readable.

Check if the provided path is readable.
sourceraw docstring

regular-file?clj

(regular-file? path)

Checks if the provided path is a plain file.

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

relative?clj

(relative? path)

Check if the provided path is relative.

Check if the provided path is relative.
sourceraw docstring

relativizeclj

(relativize base other)

Returns the relationship between two paths.

Returns the relationship between two paths.
sourceraw docstring

slurp-bytesclj

(slurp-bytes input)
source

split-extclj

(split-ext path)

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

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

to-fileclj

source

writable?clj

(writable? path)

Check if the provided path is writable.

Check if the provided path is writable.
sourceraw docstring

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

× close