scriptlike.path.wrappers

Scriptlike $(SCRIPTLIKE_VERSION)

Wrappers for $(MODULE_STD_PATH) that add support for Scriptlike's $(API_PATH_EXTR Path) and command echoing features.

Members

Aliases

baseName
alias baseName() = std.path.baseName

Alias of same-named function from $(MODULE_STD_PATH)

Functions

absolutePath
Path absolutePath(Path path, lazy string base = getcwd())
Path absolutePath(Path path, Path base)

Like $(FULL_STD_PATH absolutePath), but operates on Path.

baseName
Path baseName(Path path)
Path baseName(Path path, in string suffix)

Like $(FULL_STD_PATH baseName), but operates on Path.

defaultExtension
Path defaultExtension(Path path, in string ext)
Path defaultExtension(Path path, Ext ext)

Like $(FULL_STD_PATH defaultExtension), but operates on Path and optionally Ext.

dirName
Path dirName(Path path)

Like $(FULL_STD_PATH dirName), but operates on Path.

driveName
Path driveName(Path path)

Like $(FULL_STD_PATH driveName), but operates on Path.

expandTilde
Path expandTilde(Path path)

Like $(FULL_STD_PATH expandTilde), but operates on Path.

extension
Ext extension(in Path path)

Like $(FULL_STD_PATH extension), but takes a Path and returns an Ext.

filenameCmp
int filenameCmp(Path path, Path filename2)
int filenameCmp(Path path, string filename2)
int filenameCmp(string path, Path filename2)

Like $(FULL_STD_PATH filenameCmp), but operates on Path.

globMatch
bool globMatch(Path path, string pattern)

Like $(FULL_STD_PATH globMatch), but operates on Path.

isAbsolute
bool isAbsolute(in Path path)

Like $(FULL_STD_PATH isAbsolute), but operates on Path.

isRooted
bool isRooted(in Path path)

Like $(FULL_STD_PATH isRooted), but operates on Path.

isValidFilename
bool isValidFilename(in Path path)

Like $(FULL_STD_PATH isValidFilename), but operates on Path.

isValidPath
bool isValidPath(in Path path)

Like $(FULL_STD_PATH isValidPath), but operates on Path.

pathSplitter
auto pathSplitter(Path path)

Like $(FULL_STD_PATH pathSplitter). Note this returns a range of strings, not a range of Path.

relativePath
Path relativePath(Path path, lazy string base = getcwd())
Path relativePath(Path path, Path base)

Like $(FULL_STD_PATH relativePath), but operates on Path.

rootName
Path rootName(Path path)

Like $(FULL_STD_PATH rootName), but operates on Path.

setExtension
Path setExtension(Path path, string ext)
Path setExtension(Path path, Ext ext)

Like $(FULL_STD_PATH setExtension), but operates on Path.

stripDrive
Path stripDrive(Path path)

Like $(FULL_STD_PATH stripDrive), but operates on Path.

stripExtension
Path stripExtension(Path path)

Like $(FULL_STD_PATH stripExtension), but operates on Path.

Meta

Authors

Nick Sabalausky

License

zlib/libpng