MCPcopy Create free account
hub / github.com/plexdrive/plexdrive / Root

Method Root

mount/mount.go:208–215  ·  view source on GitHub ↗

Root returns the root path

()

Source from the content-addressed store, hash-verified

206
207// Root returns the root path
208func (f *FS) Root() (fs.Node, error) {
209 object, err := f.client.GetRoot()
210 if nil != err {
211 Log.Warningf("%v", err)
212 return nil, fmt.Errorf("Could not get root object")
213 }
214 return f.NewObject(object), nil
215}
216
217// Object represents one drive object
218type Object struct {

Callers

nothing calls this directly

Calls 2

NewObjectMethod · 0.95
GetRootMethod · 0.80

Tested by

no test coverage detected