scriptlike.file.extras

Scriptlike $(SCRIPTLIKE_VERSION)

Extra Scriptlike-only functionality to complement $(MODULE_STD_FILE).

Members

Functions

existsAsDir
bool existsAsDir(string path)
bool existsAsDir(Path path)

Checks if the path exists as a directory.

existsAsFile
bool existsAsFile(string path)
bool existsAsFile(Path path)

Checks if the path exists as a file.

existsAsSymlink
bool existsAsSymlink(string path)
bool existsAsSymlink(Path path)

Checks if the path exists as a symlink.

tryCopy
bool tryCopy(T1 from, T2 to)

If 'from' exists, then copy. Otherwise do nothing. Supports Path and command echoing.

tryMkdir
bool tryMkdir(T name)

If 'name' doesn't already exist, then mkdir. Otherwise do nothing. Supports Path and command echoing.

tryMkdirRecurse
bool tryMkdirRecurse(T name)

If 'name' doesn't already exist, then mkdirRecurse. Otherwise do nothing. Supports Path and command echoing.

tryRemove
bool tryRemove(T name)

If 'name' exists, then remove. Otherwise do nothing. Supports Path, command echoing and dryrun.

tryRename
bool tryRename(T1 from, T2 to)

If 'from' exists, then rename. Otherwise do nothing. Supports Path and command echoing.

tryRmdir
bool tryRmdir(T name)

If 'name' exists, then rmdir. Otherwise do nothing. Supports Path and command echoing.

tryRmdirRecurse
bool tryRmdirRecurse(T name)

If 'name' exists, then rmdirRecurse. Otherwise do nothing. Supports Path and command echoing.

trySymlink
bool trySymlink(T1 original, T2 link)

Posix-only. If 'original' exists, then symlink. Otherwise do nothing. Supports Path and command echoing.

trySymlink
bool trySymlink(T1 original, T2 link)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

zlib/libpng

Authors

Nick Sabalausky