Liking cljdoc? Tell your friends :D

io.randomseed.utils.fs


abs-pathnameclj

(abs-pathname path)
source

absolute-path?clj

(absolute-path? pathname)
source

basenameclj

(basename f)
source

empty-str-aryclj

source

exists?clj

(exists? filename)

Returns true if the file exists.

Returns true if the file exists.
sourceraw docstring

extensionclj

(extension f)
source

fileclj

(file fname)
source

get-java-classpath-foldersclj

(get-java-classpath-folders)

Lists all directories the exist in Java classpath as a sequence of strings. Returns nil if there are none.

Lists all directories the exist in Java classpath as a sequence of strings. Returns
nil if there are none.
sourceraw docstring

get-java-propertyclj

(get-java-property s)
source

home-dir-pathnameclj

(home-dir-pathname)
(home-dir-pathname & paths)

For the given pathnames creates a pathname expressed as a string by prefixing them with user's home directory obtained from the Java property user.dir with all parts joined using current path name separator.

For the given pathnames creates a pathname expressed as a string by prefixing them
with user's home directory obtained from the Java property `user.dir` with all parts
joined using current path name separator.
sourceraw docstring

mapv-java-propertiesclj

(mapv-java-properties v)
source

parse-java-propertiesclj

(parse-java-properties s)
source

parse-java-propertyclj

(parse-java-property s)
source

prop-pathnameclj

(prop-pathname prop)
(prop-pathname prop paths)

For the given Java property name and optional path names creates a path name expressed as a string by prefixing them with the directory obtained from a property with all parts joined using pathname separator.

For the given Java property name and optional path names creates a path name
expressed as a string by prefixing them with the directory obtained from a
property with all parts joined using pathname separator.
sourceraw docstring

prop-regexclj

source

read-linesclj

(read-lines filename)
(read-lines n filename)

Read first n lines from a file. If the pathname is relative it will be relative to user's home directory.

Read first n lines from a file. If the pathname is relative it will be relative to
user's home directory.
sourceraw docstring

read-preferencesclj

(read-preferences filename)

Reads the given preferences file. If the path is relative it will be relative to user's home directory.

Reads the given preferences file. If the path is relative it will be relative to
user's home directory.
sourceraw docstring

relative-path?clj

source

resource-exists?clj

(resource-exists? r)
source

resource-fileclj

(resource-file resource)

Returns a java.io.File object for the existing resource of the given name.

Returns a java.io.File object for the existing resource of the given name.
sourceraw docstring

resource-pathnameclj

(resource-pathname)
(resource-pathname & paths)

For the given pathnames creates a pathname expressed as a string which resides within one of the Java resource directories. The path must exist to be returned.

For the given pathnames creates a pathname expressed as a string which resides
within one of the Java resource directories. The path must exist to be returned.
sourceraw docstring

user-dir-pathnameclj

(user-dir-pathname)
(user-dir-pathname & paths)

For the given pathnames creates a pathname expressed as a string by prefixing them with user's directory (typically a project directory) obtained from the Java property user.dir with all parts joined using current path name separator.

For the given pathnames creates a pathname expressed as a string by prefixing them
with user's directory (typically a project directory) obtained from the Java
property `user.dir` with all parts joined using current path name separator.
sourceraw docstring

with-ns-loadingclj

(with-ns-loading k)
(with-ns-loading op k & more)

Executes the given function op and passes it a key or a sequence given as k and additional, optional arguments. Before that happens it will get all identifiers from the sequence (or check if the given single k is an identifier) and try to load their namespaces if the identifier(s) is/are fully qualified.

Executes the given function op and passes it a key or a sequence given as k and
additional, optional arguments. Before that happens it will get all identifiers
from the sequence (or check if the given single k is an identifier) and try to load
their namespaces if the identifier(s) is/are fully qualified.
sourceraw docstring

write-preferencesclj

(write-preferences filename data)

Writes the given preference file. If the path is relative it will be relative to user's home directory.

Writes the given preference file. If the path is relative it will be relative to
user's home directory.
sourceraw docstring

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

× close