MCPcopy
hub / github.com/rclone/rclone / isRootInPath

Method isRootInPath

backend/cache/cache.go:1838–1843  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

1836}
1837
1838func (f *Fs) isRootInPath(p string) bool {
1839 if f.Root() == "" {
1840 return true
1841 }
1842 return strings.HasPrefix(p, f.Root()+"/")
1843}
1844
1845// MergeDirs merges the contents of all the directories passed
1846// in into the first one and rmdirs the other directories.

Callers 1

runMethod · 0.80

Calls 1

RootMethod · 0.95

Tested by

no test coverage detected