Module scriptlike.path.wrappers
Scriptlike v0.10.3
Wrappers for std.path
that add support for Scriptlike's
Path
and command echoing features.
Functions
Name | Description |
---|---|
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
Name | Type | Description |
---|---|---|
absolutePath
|
|
Alias of same-named function from std.path
|
baseName
|
std
|
Alias of same-named function from std.path
|
defaultExtension
|
std
|
Alias of same-named function from std.path
|
dirName
|
std
|
Alias of same-named function from std.path
|
driveName
|
std
|
Alias of same-named function from std.path
|
expandTilde
|
|
Alias of same-named function from std.path
|
extension
|
std
|
Alias of same-named function from std.path
|
filenameCmp
|
std
|
Alias of same-named function from std.path
|
globMatch
|
std
|
Alias of same-named function from std.path
|
isAbsolute
|
std
|
Alias of same-named function from std.path
|
isRooted
|
std
|
Alias of same-named function from std.path
|
isValidFilename
|
std
|
Alias of same-named function from std.path
|
isValidPath
|
std
|
Alias of same-named function from std.path
|
pathSplitter
|
std
|
Alias of same-named function from std.path
|
relativePath
|
std
|
Alias of same-named function from std.path
|
rootName
|
std
|
Alias of same-named function from std.path
|
setExtension
|
std
|
Alias of same-named function from std.path
|
stripDrive
|
std
|
Alias of same-named function from std.path
|
stripExtension
|
std
|
Alias of same-named function from std.path
|