Module scriptlike.file.extras

Scriptlike v0.9.3

Extra Scriptlike-only functionality to complement std.file.

Functions

Name Description
existsAsDir Checks if the path exists as a directory.
existsAsFile Checks if the path exists as a file.
existsAsSymlink Checks if the path exists as a symlink.
tryCopy If 'from' exists, then copy. Otherwise do nothing.
tryMkdir If 'name' doesn't already exist, then mkdir. Otherwise do nothing.
tryMkdirRecurse If 'name' doesn't already exist, then mkdirRecurse. Otherwise do nothing.
tryRemove If 'name' exists, then remove. Otherwise do nothing.
tryRename If 'from' exists, then rename. Otherwise do nothing.
tryRmdir If 'name' exists, then rmdir. Otherwise do nothing.
tryRmdirRecurse If 'name' exists, then rmdirRecurse. Otherwise do nothing.
trySymlink

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2015 Nick Sabalausky

License

zlib/libpng