- constructFullPath
puts back ticks around components if they look like reserved keywords and joins
them with .
- parseFullPath
Parase a fully qualified dotted schema path to list of strings. a.b.`c.json` ->
[a,b,c.json] a.b.`c-
- toPathComponents
Convert fs path to list of strings. /a/b/c -> [a,b,c]
- removeLeadingSlash
Remove leading "/"s in the given path string.
- toFSPath
Convert list of components into fs path. [a,b,c] -> /a/b/c
- encodeURIComponent
Encode URI component consistent with JavaScript
- getPathJoiner
- relativePath
- toDottedPath
Convert fs path relative to parent to dotted schema path. parent: /a/b, child:
/a/b/c/d -> c.d
- toFSPathSkipRoot
Convert list of path components into fs path, skip root of path if its same as
given root. schema pa
- toFSPathString
- verifyNoAccessOutsideBase
Make sure the givenPath refers to an entity under the given basePath. Idea is to
avoid using ".." to