Check if path1 matches path2, if not, check if its a subpath
https://stackoverflow.com/questions/37521893/determine-if-a-path-is-subdirectory-of-another-in-node-js
Identify if a path is a root node
Split path using "/" as a delimiter
Generated using TypeDoc
Check if path1 matches path2, if not, check if its a subpath
https://stackoverflow.com/questions/37521893/determine-if-a-path-is-subdirectory-of-another-in-node-js