Functions for working with files and directories.
Functions for working with files and directories.
(absolute-file file)
Returns the file as absolute file.
Returns the file as absolute file.
(absolute-path file)
Returns the absolute path of the file.
Returns the absolute path of the file.
(all-files file)
Returns a sequence of the files in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
Returns a sequence of the files in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
(all-files-by-extension ext file)
Returns a sequence of the files with the extension ext in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
Returns a sequence of the files with the extension ext in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
(all-files-by-pattern pattern file)
Returns a sequence of the files that match the pattern in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
Returns a sequence of the files that match the pattern in a directory given as file and its sub directories. If the given file is not a directory, it is returned as only file in the sequence.
(base-name file)
Returns the name of the file.
Returns the name of the file.
(build-absolute-path dir filename)
(build-absolute-path dir filename extension)
Returns the absolute path of the file defined by the given directory, filename (and extension).
Returns the absolute path of the file defined by the given directory, filename (and extension).
(build-path files)
(build-path sep files)
Build a path by joining the given files with the separator or ':' as default.
Build a path by joining the given files with the separator or ':' as default.
(build-searchpath pathnames)
Creates a sequence containing the directories to search.
Creates a sequence containing the directories to search.
(canonical-file file)
Returns the canonical file of the file.
Returns the canonical file of the file.
(canonical-path file)
Returns the canonical path of the file.
Returns the canonical path of the file.
(create-dir file)
Creates a directory including missing parent directories.
Creates a directory including missing parent directories.
(delete-dir file)
Deletes the directory and any subdirectories.
Deletes the directory and any subdirectories.
(directory-searcher filename)
(directory-searcher filename extension)
Returns a function that takes a directory and returns the file specified by filename (and extension).
Returns a function that takes a directory and returns the file specified by filename (and extension).
(executable? file)
Returns true, if the given file is executable.
Returns true, if the given file is executable.
(existing-files dirs)
(existing-files ext dirs)
Returns all existing files (with the specified extension) in the given directories.
Returns all existing files (with the specified extension) in the given directories.
(existing-files-by-pattern pattern dirs)
Returns all existing files matching the specified pattern in the given directories.
Returns all existing files matching the specified pattern in the given directories.
(existing-files-on-path dir-path)
(existing-files-on-path ext dir-path)
Returns all existing files (with the specified extension) on the given path.
Returns all existing files (with the specified extension) on the given path.
(exists? file)
Returns true, if the given file exists.
Returns true, if the given file exists.
(file-locator searchpath)
(file-locator searchpath ext)
Returns a function that locates a file by name on the search path.
Returns a function that locates a file by name on the search path.
(file-name file)
Returns the name of the file.
Returns the name of the file.
(files file)
Returns a sequence of the files in a directory given as file. If the given file is not a directory, it is returned as only file in the sequence.
Returns a sequence of the files in a directory given as file. If the given file is not a directory, it is returned as only file in the sequence.
(files-by-extension ext file)
Returns a sequence of the files with the extension ext in a directory given as file. If the given file is not a directory, it is returned as only file in the sequence.
Returns a sequence of the files with the extension ext in a directory given as file. If the given file is not a directory, it is returned as only file in the sequence.
(has-extension? ext file)
Returns true if the path of the file ends with the given extension.
Returns true if the path of the file ends with the given extension.
(is-dir? file)
Returns true, if the given file exists and is a directory.
Returns true, if the given file exists and is a directory.
(is-file? file)
Returns true, if the given file exists and is a directory.
Returns true, if the given file exists and is a directory.
(locate-file searchpath filename)
(locate-file searchpath filename extension)
Returns the first existing file on the search path for the specified filename (and extension).
Returns the first existing file on the search path for the specified filename (and extension).
(matches? pattern file)
Returns true if the path of the file matches the given pattern.
Returns true if the path of the file matches the given pattern.
(normalize-path path)
Returns the normalized path (unix convention) of the path.
Returns the normalized path (unix convention) of the path.
(normalized-path file)
Returns the normalized path (unix convention) of the file.
Returns the normalized path (unix convention) of the file.
(parent-dir file)
Returns the parent dir of the file if it exists.
Returns the parent dir of the file if it exists.
(parent-path file)
Returns the parent path for the file if it exists.
Returns the parent path for the file if it exists.
(path-pattern ant-pattern)
Convert ant style path patterns to regex path patterns.
Convert ant style path patterns to regex path patterns.
(readable? file)
Returns true, if the given file is readable.
Returns true, if the given file is readable.
(relative-path base-path file)
Returns the path of the file relative to the base-path.
Returns the path of the file relative to the base-path.
(split-path paths)
(split-path sep paths)
Split a path string with the given separator or ':' as default.
Split a path string with the given separator or ':' as default.
(writeable? file)
Returns true, if the given file is writeable.
Returns true, if the given file is writeable.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close