scriptlike.path.extras

Scriptlike $(SCRIPTLIKE_VERSION)

Extra Scriptlike-only functionality to complement $(MODULE_STD_PATH).

Members

Aliases

defaultExt
alias defaultExt = defaultExtension
Undocumented in source.
extOf
alias extOf = extension

Convenience alias

setExt
alias setExt = setExtension
Undocumented in source.
stripExt
alias stripExt = stripExtension
Undocumented in source.

Functions

buildNormalizedPathFixed
string buildNormalizedPathFixed(string[] paths)

Like buildNormalizedPath, but if the result is the current directory, this returns "." instead of "". However, if all the inputs are "", or there are no inputs, this still returns "" just like buildNormalizedPath.

escapeShellArg
const(string) escapeShellArg(string str)
string escapeShellArg(Path path)

Properly escape arguments containing spaces for the command shell, if necessary.

Structs

Ext
struct Ext

Represents a file extension.

Path
struct Path

Represents a filesystem path. The path is always kept normalized automatically (as performed by buildNormalizedPathFixed).

Meta

License

zlib/libpng

Authors

Nick Sabalausky