MCPcopy Create free account
hub / github.com/dropbox/dbxcli / isRemoteFolder

Function isRemoteFolder

cmd/dropbox_path.go:40–51  ·  view source on GitHub ↗
(dbx filesClient, dst string)

Source from the content-addressed store, hash-verified

38}
39
40func isRemoteFolder(dbx filesClient, dst string) bool {
41 p, err := validatePath(dst)
42 if err != nil {
43 return false
44 }
45 meta, err := dbx.GetMetadataContext(currentContext(), files.NewGetMetadataArg(p))
46 if err != nil {
47 return false
48 }
49 _, ok := meta.(*files.FolderMetadata)
50 return ok
51}

Callers 5

cpFunction · 0.85
mvFunction · 0.85
TestIsRemoteFolder_FileFunction · 0.85

Calls 3

validatePathFunction · 0.85
currentContextFunction · 0.85
GetMetadataContextMethod · 0.65

Tested by 3

TestIsRemoteFolder_FileFunction · 0.68