Janet 1.26.0-c28df14 Documentation
(Other Versions:
1.25.1
1.24.0
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.1
1.17.1
1.16.1
1.15.0
1.13.1
1.12.2
1.11.1
1.10.1
1.9.1
1.8.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
)
Shell Utilities
Index
shutil/abspath shutil/basename shutil/clear-cache shutil/clear-manifest shutil/clexe-shell shutil/copy shutil/copyfile shutil/create-dirs shutil/devnull shutil/dirname shutil/drop1-shell shutil/exec-slurp shutil/filepath-replace shutil/find-build-dir shutil/find-cache shutil/find-manifest shutil/find-manifest-dir shutil/is-win shutil/path-splitter shutil/rimraf shutil/rm shutil/shell
shutil/abspath function source
(abspath path) Create an absolute path. Does not resolve . and .. (useful for generating entries in install manifest file).Community Examples
shutil/basename function source
(basename path) Get the filename of a path without any leading directory components.Community Examples
shutil/clear-manifest function source
(clear-manifest) Clear the global installation manifest.Community Examples
shutil/copy function source
(copy src dest) Copy a file or directory recursively from one location to another.Community Examples
shutil/copyfile function source
(copyfile src dest) Copy a file one location to another.Community Examples
shutil/create-dirs function source
(create-dirs dest) Create all directories needed for a file (mkdir -p).Community Examples
shutil/dirname function source
(dirname path) Get the directory of a file without the filename.Community Examples
shutil/drop1-shell function source
(drop1-shell std args) Variant of `shell` to play nice with cl.exe, which outputs some junk to terminal that can't be turned off.Community Examples
shutil/exec-slurp function source
(exec-slurp & args) Read stdout of subprocess and return it trimmed in a string.Community Examples
shutil/filepath-replace function source
(filepath-replace repo) Remove special characters from a string or path to make it into a path segment.Community Examples
shutil/find-build-dir function source
(find-build-dir) Gets the build directory to output files to.Community Examples
shutil/find-cache function source
(find-cache) Return the path to the global cache.Community Examples
shutil/find-manifest function source
(find-manifest name) Get the full path of a manifest file given a package name.Community Examples
shutil/find-manifest-dir function source
(find-manifest-dir) Get the path to the directory containing manifests for installed packages.Community Examples
shutil/is-win function source
(is-win) Check if we should assume a DOS-like shell or default to posix shell.Community Examples