MCPcopy Create free account
hub / github.com/tailscale/tailscale / Base

Function Base

drive/driveimpl/shared/pathutil.go:72–77  ·  view source on GitHub ↗

Base is like path.Base except that it returns "" for the root folder

(p string)

Source from the content-addressed store, hash-verified

70
71// Base is like path.Base except that it returns "" for the root folder
72func Base(p string) string {
73 if IsRoot(p) {
74 return ""
75 }
76 return path.Base(p)
77}

Callers 2

RenamedFileInfoFunction · 0.85
ReadOnlyDirInfoFunction · 0.85

Calls 1

IsRootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…