Utility functions related to do system operations, such as running processes.
Utility functions related to do system operations, such as running processes.
(cpr! src-uri dest-uri)
Recursively copies 'src-uri' to 'dest-uri' overwriting existing files and directories with the same paths as under 'dest-uri'.
Recursively copies 'src-uri' to 'dest-uri' overwriting existing files and directories with the same paths as under 'dest-uri'.
(create-process-builder! executable)
(direct-child-dirs dir-obj)
(direct-child-files dir-obj)
(kill! executable)
(ls-dirs & base-uris)
Returns a listing of all directories that are direct children of 'base-uri' as uris.
Returns a listing of all directories that are direct children of 'base-uri' as uris.
(mv! src-uri dest-uri)
Renames a local file pointed out by 'src-uri' to a local file represented by 'dest-uri'.
Renames a local file pointed out by 'src-uri' to a local file represented by 'dest-uri'.
(pb! working-dir command & options)
Working dir defines the origin directory of all other arguments as well as for created processes based on the created process builder.
Working dir defines the origin directory of all other arguments as well as for created processes based on the created process builder.
(proc! process-builder)
(reset-files-in-dir! dir-uri files)
Resets the files directly under 'dir-uri' to match the supplied 'files' map on the form {:filename "content"}. If content is not a string, it will be regarded as a file to leave untouched if it already exists.
Resets the files directly under 'dir-uri' to match the supplied 'files' map on the form {:filename "content"}. If content is not a string, it will be regarded as a file to leave untouched if it already exists.
(rrmdir! dir)
Recursively removes the directory at 'dir', 'dir' being either a java.io.File, a java.net.URI representing a directory or an URI string.
Recursively removes the directory at 'dir', 'dir' being either a java.io.File, a java.net.URI representing a directory or an URI string.
(run! executable)
(slurp-files base-uris & name-regex)
Slurps all files found as direct children of the supplied base uris and merges them into a {:filename "content"} map. Optionally 'name-regex' can be supplied to filter on certain filenames.
Slurps all files found as direct children of the supplied base uris and merges them into a {:filename "content"} map. Optionally 'name-regex' can be supplied to filter on certain filenames.
(start-process! executable)
(to-file dir)
Converts a java.io.File, java.net.URI or an URI string to a java.io.File object.
Converts a java.io.File, java.net.URI or an URI string to a java.io.File object.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close