Janet 1.27.0-01aab66 Documentation
(Other Versions:
1.26.0
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-mingw shutil/is-win shutil/is-win-or-mingw shutil/path-splitter shutil/rimraf shutil/rm shutil/shell
function (shutil/abspath path)
Create an absolute path. Does not resolve . and .. (useful for generating entries in install manifest file).Community Examples / source
function (shutil/basename path)
Get the filename of a path without any leading directory components.Community Examples / source
function (shutil/copy src dest)
Copy a file or directory recursively from one location to another.Community Examples / source
function (shutil/create-dirs dest)
Create all directories needed for a file (mkdir -p).Community Examples / source
function (shutil/dirname path)
Get the directory of a file without the filename.Community Examples / source
function (shutil/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 / source
function (shutil/exec-slurp & args)
Read stdout of subprocess and return it trimmed in a string.Community Examples / source
function (shutil/filepath-replace repo)
Remove special characters from a string or path to make it into a path segment.Community Examples / source
function (shutil/find-build-dir )
Gets the build directory to output files to.Community Examples / source
function (shutil/find-manifest name)
Get the full path of a manifest file given a package name.Community Examples / source
function (shutil/find-manifest-dir )
Get the path to the directory containing manifests for installed packages.Community Examples / source
function (shutil/is-win )
Check if we should assume a DOS-like shell or default to posix shell.Community Examples / source