Module scriptlike.path.extras

Scriptlike v0.10.3

Extra Scriptlike-only functionality to complement std.path.

Functions

NameDescription
buildNormalizedPathFixed(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(str) Properly escape arguments containing spaces for the command shell, if necessary.

Structs

NameDescription
Ext Represents a file extension.
Path Represents a filesystem path. The path is always kept normalized automatically (as performed by buildNormalizedPathFixed).

Aliases

NameTypeDescription
defaultExt Convenience alias
extOf Convenience alias
setExt Convenience alias
stripExt Convenience alias