Compare two roots to determine if they are the same
This method supports comparing different path formats for the same root path
compareRoots('/c:/root', 'C:\\root'); // returns true!
Determine if input is a Leaf
node (or leaf) to test
Check if incoming string is a root path
the path to test
Whether or not the path contains a root
Normalize a given path to a shared format
Allows parsing paths to be easier since a single format is used. The format includes normalizing the root (see {@link normalizeRoot | normalizeRoot} for the normalized root format), and converting all path separators to '/'.
Normalize an incoming path's root and return both the normalized root as well as the originally matched root.
If the incoming path is not a root path, an empty string is returned for both the normalized root and the original root
the path whose root should be normalized
an array of length 2 where the first entry is the original root and the second entry is the normalized root
Determine the normalized relative path from one path to another
the source path to use as the base of the relative path
the destination path that should be resolved
the normalized relative path between the two input paths
Generated using TypeDoc
Convenience type for creating a tree-like structure