scriptlike.file.wrappers

Scriptlike $(SCRIPTLIKE_VERSION)

Wrappers for $(MODULE_STD_FILE) that add support for Scriptlike's $(API_PATH_EXTR Path), command echoing and dry-run features.

Members

Aliases

append
alias append = std.file.append
Undocumented in source.
chdir
alias chdir = std.file.chdir
Undocumented in source.
copy
alias copy = std.file.copy
Undocumented in source.
dirEntries
alias dirEntries = std.file.dirEntries
Undocumented in source.
exists
alias exists = std.file.exists
Undocumented in source.
getAttributes
alias getAttributes = std.file.getAttributes
Undocumented in source.
getLinkAttributes
alias getLinkAttributes = std.file.getLinkAttributes
Undocumented in source.
getSize
alias getSize = std.file.getSize
Undocumented in source.
getTimes
alias getTimes = std.file.getTimes
Undocumented in source.
getTimesWin
alias getTimesWin = std.file.getTimesWin
Undocumented in source.
getTimesWin
alias getTimesWin = std.file.getTimesWin
Undocumented in source.
isDir
alias isDir = std.file.isDir
Undocumented in source.
isFile
alias isFile = std.file.isFile
Undocumented in source.
isSymlink
alias isSymlink() = std.file.isSymlink
Undocumented in source.
mkdir
alias mkdir = std.file.mkdir
Undocumented in source.
mkdirRecurse
alias mkdirRecurse = std.file.mkdirRecurse
Undocumented in source.
read
alias read = std.file.read

Alias of same-named function from $(MODULE_STD_FILE)

readLink
alias readLink() = std.file.readLink
Undocumented in source.
readLink
alias readLink() = std.file.readLink
Undocumented in source.
readText
alias readText() = std.file.readText
Undocumented in source.
remove
alias remove = std.file.remove
Undocumented in source.
rename
alias rename = std.file.rename
Undocumented in source.
rmdir
alias rmdir = std.file.rmdir
Undocumented in source.
rmdirRecurse
alias rmdirRecurse = std.file.rmdirRecurse
Undocumented in source.
setTimes
alias setTimes = std.file.setTimes
Undocumented in source.
slurp
alias slurp = std.file.slurp
Undocumented in source.
symlink
alias symlink() = std.file.symlink
Undocumented in source.
symlink
alias symlink() = std.file.symlink
Undocumented in source.
timeLastModified
alias timeLastModified = std.file.timeLastModified
Undocumented in source.
write
alias write = std.file.write
Undocumented in source.

Functions

append
void append(Path name, void[] buffer)
void append(string name, void[] buffer)

Like $(FULL_STD_FILE append), but supports Path, command echoing and dryrun.

chdir
void chdir(Path pathname)

Like $(FULL_STD_FILE chdir), but supports Path and command echoing.

chdir
void chdir(string pathname)

Like $(FULL_STD_FILE chdir), but supports Path and command echoing.

copy
void copy(Path from, Path to)
void copy(string from, Path to)
void copy(Path from, string to)
void copy(string from, string to)

Like $(FULL_STD_FILE copy), but supports Path, command echoing and dryrun.

dirEntries
auto dirEntries(Path path, SpanMode mode, bool followSymlink)

Like $(FULL_STD_FILE dirEntries), but supports Path and command echoing.

dirEntries
auto dirEntries(Path path, string pattern, SpanMode mode, bool followSymlink)

Like $(FULL_STD_FILE dirEntries), but supports Path and command echoing.

exists
bool exists(Path name)

Like $(FULL_STD_FILE exists), but supports Path and command echoing.

getAttributes
uint getAttributes(Path name)

Like $(FULL_STD_FILE getAttributes), but supports Path and command echoing.

getLinkAttributes
uint getLinkAttributes(Path name)

Like $(FULL_STD_FILE getLinkAttributes), but supports Path and command echoing.

getSize
ulong getSize(Path name)

Like $(FULL_STD_FILE getSize), but supports Path and command echoing.

getTimes
void getTimes(Path name, SysTime accessTime, SysTime modificationTime)

Like $(FULL_STD_FILE getTimes), but supports Path and command echoing.

getTimesWin
void getTimesWin(Path name, SysTime fileCreationTime, SysTime fileAccessTime, SysTime fileModificationTime)

Windows-only. Like $(FULL_STD_FILE getTimesWin), but supports Path and command echoing.

getTimesWin
void getTimesWin(Path name, SysTime fileCreationTime, SysTime fileAccessTime, SysTime fileModificationTime)
Undocumented in source. Be warned that the author may not have intended to support it.
getcwd
Path getcwd()

Like $(FULL_STD_FILE getcwd), but returns a Path.

mkdir
void mkdir(Path pathname)
void mkdir(string pathname)

Like $(FULL_STD_FILE mkdir), but supports Path, command echoing and dryrun.

mkdirRecurse
void mkdirRecurse(Path pathname)
void mkdirRecurse(string pathname)

Like $(FULL_STD_FILE mkdirRecurse), but supports Path, command echoing and dryrun.

read
void[] read(Path name, size_t upTo)

Like $(FULL_STD_FILE read), but supports Path and command echoing.

readLink
Path readLink(Path link)

Posix-only. Like $(FULL_STD_FILE readLink), but supports Path and command echoing.

readLink
Path readLink(Path link)
Undocumented in source. Be warned that the author may not have intended to support it.
readText
S readText(Path name)

Like $(FULL_STD_FILE readTXXXXXXXext), but supports Path and command echoing.

remove
void remove(Path name)
void remove(string name)

Like $(FULL_STD_FILE remove), but supports Path, command echoing and dryrun.

rename
void rename(Path from, Path to)
void rename(string from, Path to)
void rename(Path from, string to)
void rename(string from, string to)

Like $(FULL_STD_FILE rename), but supports Path, command echoing and dryrun.

rmdir
void rmdir(Path pathname)
void rmdir(string pathname)

Like $(FULL_STD_FILE rmdir), but supports Path, command echoing and dryrun.

rmdirRecurse
void rmdirRecurse(Path pathname)
void rmdirRecurse(string pathname)

Like $(FULL_STD_FILE rmdirRecurse), but supports Path, command echoing and dryrun.

setTimes
void setTimes(Path name, SysTime accessTime, SysTime modificationTime)
void setTimes(string name, SysTime accessTime, SysTime modificationTime)

Like $(FULL_STD_FILE setTimes), but supports Path, command echoing and dryrun.

symlink
void symlink(Path original, Path link)
void symlink(string original, Path link)
void symlink(Path original, string link)
void symlink(string original, string link)

Posix-only. Like $(FULL_STD_FILE symlink), but supports Path and command echoing.

symlink
void symlink(Path original, Path link)
Undocumented in source. Be warned that the author may not have intended to support it.
symlink
void symlink(string original, Path link)
Undocumented in source. Be warned that the author may not have intended to support it.
symlink
void symlink(Path original, string link)
Undocumented in source. Be warned that the author may not have intended to support it.
symlink
void symlink(string original, string link)
Undocumented in source. Be warned that the author may not have intended to support it.
tempDir
Path tempDir()

Like $(FULL_STD_FILE tempDir), but supports Path and command echoing.

thisExePath
Path thisExePath()

Like $(FULL_STD_FILE thisExePath), but supports Path and command echoing.

timeLastModified
SysTime timeLastModified(Path name)

Like $(FULL_STD_FILE timeLastModified), but supports Path and command echoing.

timeLastModified
SysTime timeLastModified(Path name, SysTime returnIfMissing)

Like $(FULL_STD_FILE timeLastModified), but supports Path and command echoing.

write
void write(Path name, void[] buffer)
void write(string name, void[] buffer)

Like $(FULL_STD_FILE write), but supports Path, command echoing and dryrun.

Imports

FileException (from std.file)
public import std.file : FileException, SpanMode, attrIsDir, attrIsFile, attrIsSymlink;
Undocumented in source.
SpanMode (from std.file)
public import std.file : FileException, SpanMode, attrIsDir, attrIsFile, attrIsSymlink;
Undocumented in source.
attrIsDir (from std.file)
public import std.file : FileException, SpanMode, attrIsDir, attrIsFile, attrIsSymlink;
Undocumented in source.
attrIsFile (from std.file)
public import std.file : FileException, SpanMode, attrIsDir, attrIsFile, attrIsSymlink;
Undocumented in source.
attrIsSymlink (from std.file)
public import std.file : FileException, SpanMode, attrIsDir, attrIsFile, attrIsSymlink;
Undocumented in source.

Properties

isDir
bool isDir [@property getter]

Like $(FULL_STD_FILE isDir), but supports Path and command echoing.

isFile
bool isFile [@property getter]

Like $(FULL_STD_FILE isFile), but supports Path and command echoing.

isSymlink
bool isSymlink [@property getter]

Like $(FULL_STD_FILE isSymlink), but supports Path and command echoing.

Templates

slurp
template slurp(Types...)

Like $(FULL_STD_FILE slurp), but supports Path and command echoing.

Meta

License

zlib/libpng

Authors

Nick Sabalausky