Module scriptlike.path.wrappers

Scriptlike v0.10.3

Wrappers for std.path that add support for Scriptlike's Path and command echoing features.

Functions

NameDescription
absolutePath(path, base) Like std.path.absolutePath, but operates on Path.
baseName(path) Like std.path.baseName, but operates on Path.
defaultExtension(path, ext) Like std.path.defaultExtension, but operates on Path and optionally Ext.
dirName(path) Like std.path.dirName, but operates on Path.
driveName(path) Like std.path.driveName, but operates on Path.
expandTilde(path) Like std.path.expandTilde, but operates on Path.
extension(path) Like std.path.extension, but takes a Path and returns an Ext.
filenameCmp(path, filename2) Like std.path.filenameCmp, but operates on Path.
globMatch(path, pattern) Like std.path.globMatch, but operates on Path.
isAbsolute(path) Like std.path.isAbsolute, but operates on Path.
isRooted(path) Like std.path.isRooted, but operates on Path.
isValidFilename(path) Like std.path.isValidFilename, but operates on Path.
isValidPath(path) Like std.path.isValidPath, but operates on Path.
pathSplitter(path) Like std.path.pathSplitter. Note this returns a range of strings, not a range of Path.
relativePath(path, base) Like std.path.relativePath, but operates on Path.
rootName(path) Like std.path.rootName, but operates on Path.
setExtension(path, ext) Like std.path.setExtension, but operates on Path.
stripDrive(path) Like std.path.stripDrive, but operates on Path.
stripExtension(path) Like std.path.stripExtension, but operates on Path.

Aliases

NameTypeDescription
absolutePath Alias of same-named function from std.path
baseName std.path.baseName Alias of same-named function from std.path
defaultExtension std.path.defaultExtension Alias of same-named function from std.path
dirName std.path.dirName Alias of same-named function from std.path
driveName std.path.driveName Alias of same-named function from std.path
expandTilde Alias of same-named function from std.path
extension std.path.extension Alias of same-named function from std.path
filenameCmp std.path.filenameCmp Alias of same-named function from std.path
globMatch std.path.globMatch Alias of same-named function from std.path
isAbsolute std.path.isAbsolute Alias of same-named function from std.path
isRooted std.path.isRooted Alias of same-named function from std.path
isValidFilename std.path.isValidFilename Alias of same-named function from std.path
isValidPath std.path.isValidPath Alias of same-named function from std.path
pathSplitter std.path.pathSplitter Alias of same-named function from std.path
relativePath std.path.relativePath Alias of same-named function from std.path
rootName std.path.rootName Alias of same-named function from std.path
setExtension std.path.setExtension Alias of same-named function from std.path
stripDrive std.path.stripDrive Alias of same-named function from std.path
stripExtension std.path.stripExtension Alias of same-named function from std.path