MCPcopy Create free account
hub / github.com/breck7/scroll / _posixFormat

Function _posixFormat

external/.scrollLibs.js:14681–14691  ·  view source on GitHub ↗
(sep, pathObject)

Source from the content-addressed store, hash-verified

14679 return res
14680}
14681function _posixFormat(sep, pathObject) {
14682 var dir = pathObject.dir || pathObject.root
14683 var base = pathObject.base || (pathObject.name || "") + (pathObject.ext || "")
14684 if (!dir) {
14685 return base
14686 }
14687 if (dir === pathObject.root) {
14688 return dir + base
14689 }
14690 return dir + sep + base
14691}
14692var posix = {
14693 // path.resolve([from ...], to)
14694 resolve: function resolve() {

Callers 1

.scrollLibs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected