MCPcopy
hub / github.com/rclone/rclone / cleanPath

Function cleanPath

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

Source from the content-addressed store, hash-verified

1883}
1884
1885func cleanPath(p string) string {
1886 p = path.Clean(p)
1887 if p == "." || p == "/" {
1888 p = ""
1889 }
1890
1891 return p
1892}
1893
1894// UserInfo returns info about the connected user
1895func (f *Fs) UserInfo(ctx context.Context) (map[string]string, error) {

Callers 15

runMethod · 0.85
NewFsFunction · 0.85
unwrapRemoteMethod · 0.85
receiveChangeNotifyMethod · 0.85
MkdirMethod · 0.85
RmdirMethod · 0.85
DirMoveMethod · 0.85
cacheReaderMethod · 0.85
putMethod · 0.85
CopyMethod · 0.85
MoveMethod · 0.85
getBucketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…