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

Method dirname

external/.scrollLibs.js:21840–21845  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

21838 return 1
21839 }
21840 dirname(path) {
21841 if (isUrl(path)) {
21842 return path.substring(0, path.lastIndexOf("/"))
21843 }
21844 return Utils.posix.dirname(path)
21845 }
21846 join(...segments) {
21847 const firstSegment = segments[0]
21848 if (isUrl(firstSegment)) {

Callers

nothing calls this directly

Calls 2

isUrlFunction · 0.85
dirnameMethod · 0.45

Tested by

no test coverage detected