MCPcopy Create free account
hub / github.com/cli/cli / localPath

Method localPath

internal/safepaths/root.go:268–270  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

266}
267
268func (r *Root) localPath(name string) (string, error) {
269 return validateChildPath(name)
270}
271
272// ValidateChild reports whether the cleaned name is a lexically contained path,
273// using the host operating system's path rules. Joining it to a root stays

Callers 4

SubMethod · 0.95
MkdirAllMethod · 0.95
ValidateMethod · 0.95
CreateMethod · 0.95

Calls 1

validateChildPathFunction · 0.85

Tested by

no test coverage detected