MCPcopy
hub / github.com/rclone/rclone / CleanUp

Method CleanUp

backend/cache/cache.go:1737–1746  ·  view source on GitHub ↗

CleanUp the trash in the Fs

(ctx context.Context)

Source from the content-addressed store, hash-verified

1735
1736// CleanUp the trash in the Fs
1737func (f *Fs) CleanUp(ctx context.Context) error {
1738 f.CleanUpCache(false)
1739
1740 do := f.Fs.Features().CleanUp
1741 if do == nil {
1742 return nil
1743 }
1744
1745 return do(ctx)
1746}
1747
1748// About gets quota information from the Fs
1749func (f *Fs) About(ctx context.Context) (*fs.Usage, error) {

Callers

nothing calls this directly

Calls 2

CleanUpCacheMethod · 0.95
FeaturesMethod · 0.65

Tested by

no test coverage detected