commondir
compute the closest common parent for file paths
common-path-prefix
Computes the longest prefix string that is common to each path, excluding the base component
path-root-regex
Regular expression for getting the root of a posix or windows filepath.