Module scriptlike.file.wrappers

Scriptlike v0.9.4

Wrappers for std.file that add support for Scriptlike's Path, command echoing and dry-run features.

Functions

Name Description
append Like std.file.append, but supports Path, command echoing and dryrun.
chdir Like std.file.chdir, but supports Path and command echoing.
copy Like std.file.copy, but supports Path, command echoing and dryrun.
dirEntries Like std.file.dirEntries, but supports Path and command echoing.
exists Like std.file.exists, but supports Path and command echoing.
getAttributes Like std.file.getAttributes, but supports Path and command echoing.
getcwd Like std.file.getcwd, but returns a Path.
getLinkAttributes Like std.file.getLinkAttributes, but supports Path and command echoing.
getSize Like std.file.getSize, but supports Path and command echoing.
getTimes Like std.file.getTimes, but supports Path and command echoing.
isDir Like std.file.isDir, but supports Path and command echoing.
isFile Like std.file.isFile, but supports Path and command echoing.
isSymlink Like std.file.isSymlink, but supports Path and command echoing.
mkdir Like std.file.mkdir, but supports Path, command echoing and dryrun.
mkdirRecurse Like std.file.mkdirRecurse, but supports Path, command echoing and dryrun.
read Like std.file.read, but supports Path and command echoing.
readLink
readLink
readText Like std.file.readText, but supports Path and command echoing.
remove Like std.file.remove, but supports Path, command echoing and dryrun.
rename Like std.file.rename, but supports Path, command echoing and dryrun.
rmdir Like std.file.rmdir, but supports Path, command echoing and dryrun.
rmdirRecurse Like std.file.rmdirRecurse, but supports Path, command echoing and dryrun.
setTimes Like std.file.setTimes, but supports Path, command echoing and dryrun.
slurp Like std.file.slurp, but supports Path and command echoing.
symlink
symlink
symlink
symlink
tempDir Like std.file.tempDir, but supports Path and command echoing.
thisExePath Like std.file.thisExePath, but supports Path and command echoing.
timeLastModified Like std.file.timeLastModified, but supports Path and command echoing.
write Like std.file.write, but supports Path, command echoing and dryrun.

Aliases

Name Type Description
readFile Alias of read, included to provide naming symmetry with writeFile, which
writeFile Alias of write to help avoid naming conflicts with

Authors

Nick Sabalausky

Copyright

Copyright (C) 2014-2015 Nick Sabalausky

License

zlib/libpng