MCPcopy
hub / github.com/rclone/rclone / clearRoot

Method clearRoot

backend/mega/mega.go:465–470  ·  view source on GitHub ↗

clearRoot unsets the root directory

()

Source from the content-addressed store, hash-verified

463
464// clearRoot unsets the root directory
465func (f *Fs) clearRoot() {
466 f.rootNodeMu.Lock()
467 f._rootNode = nil
468 f.rootNodeMu.Unlock()
469 //log.Printf("cleared root directory")
470}
471
472// CleanUp deletes all files currently in trash
473func (f *Fs) CleanUp(ctx context.Context) (err error) {

Callers 2

purgeCheckMethod · 0.95
DirMoveMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected