MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / DeleteDirectory

Method DeleteDirectory

internal/op/cache.go:59–64  ·  view source on GitHub ↗

remove directory from dirCache

(storage driver.Driver, dirPath string)

Source from the content-addressed store, hash-verified

57
58// remove directory from dirCache
59func (cm *CacheManager) DeleteDirectory(storage driver.Driver, dirPath string) {
60 if storage.Config().NoCache {
61 return
62 }
63 cm.dirCache.Delete(Key(storage, dirPath))
64}
65
66// remove object from dirCache.
67// if it's a directory, remove all its children from dirCache too.

Callers 5

StreamUploadMethod · 0.80
fastUploadMethod · 0.80
newUploadMethod · 0.80
ArchiveDecompressFunction · 0.80

Calls 3

KeyFunction · 0.85
ConfigMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected