Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/creationix/git-browser
/ pathJoin
Function
pathJoin
src/old/git-webfs.js:240–244 ·
view source on GitHub ↗
(base, path)
Source
from the content-addressed store, hash-verified
238
}
239
240
function
pathJoin(base, path) {
241
if
(base[base.length - 1] ===
"/"
) base = base.substr(0, base.length - 1);
242
if
(path[0] ===
"/"
) path = path.substr(1);
243
return
base +
"/"
+ path;
244
}
Callers
1
wrap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected