Creates a DocometPath instance
The directory path
Optionalname: stringThe file name
Optionalext: stringThe file extension
Full file name (name + ext)
Directory path
File extension with leading dot
File name without extension
StaticrootRoot path
Get the JSON representation of the path
The JSON representation
Get the posix string representation of the path
The posix string representation
Get the string representation of the path
The string representation
Create a new DocometPath instance with updated properties
The updated properties
The DocometPath instance
StaticabsoluteConvert a path to an absolute path
The path
The absolute path
StaticdoesCheck if a path does not exist
The path
true if does not exist, otherwise false
StaticexistsCheck if a path exists
The path
true if exists, otherwise false
StaticfindFind a file or directory up the directory tree
The name to find
The path to start searching from
The absolute path to the found item, or undefined if not found
StaticjoinJoin paths by the platform separator
The paths
The joined path
StaticjoinJoin paths by the posix separator
The paths
The joined path
StaticnewCreate a new DocometPath instance
The constructor arguments
The DocometPath instance
StaticparseParse a path string into a DocometPath instance
The path string
The DocometPath instance
StaticrebuildRebuild a path using split and join functions
The path
The split function
The join function
The rebuilt path
StaticrelativeGet the relative path from the root path
The target path
The root path
The relative path
StaticsplitSplit a path by the platform separator
The path
The split path
StaticsplitSplit a path by the posix separator
The path
The split path
Path