scriptlike.path.extras

Scriptlike $(SCRIPTLIKE_VERSION)

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

Members

Aliases

extOf
alias extOf = extension

Convenience alias

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(in 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

Authors

Nick Sabalausky

License

zlib/libpng