Module scriptlike.file.extras

Scriptlike v0.9.4

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.
removePath Delete name regardless of whether it's a file or directory.
tryCopy If 'from' exists, then copy. Otherwise, do nothing and return false.
tryMkdir If 'name' doesn't already exist, then mkdir. Otherwise, do nothing and return false.
tryMkdirRecurse If 'name' doesn't already exist, then mkdirRecurse. Otherwise, do nothing and return false.
tryRemove If 'name' exists, then remove. Otherwise, do nothing and return false.
tryRemovePath If name exists, then delete it regardless of whether it's a file or
tryRename If 'from' exists, then rename. Otherwise, do nothing and return false.
tryRmdir If 'name' exists, then rmdir. Otherwise, do nothing and return false.
tryRmdirRecurse If 'name' exists, then rmdirRecurse. Otherwise, do nothing and return false.
trySymlink

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2015 Nick Sabalausky

License

zlib/libpng