MCPcopy
hub / github.com/OpenListTeam/OpenList / Key

Function Key

internal/op/cache.go:35–37  ·  view source on GitHub ↗
(storage driver.Driver, path string)

Source from the content-addressed store, hash-verified

33var Cache = NewCacheManager()
34
35func Key(storage driver.Driver, path string) string {
36 return utils.GetFullPath(storage.GetStorage().MountPath, path)
37}
38
39// recursively delete directory and its children from dirCache
40func (cm *CacheManager) DeleteDirectoryTree(storage driver.Driver, dirPath string) {

Callers 15

GetTasksMethod · 0.92
GetTasksExpertMethod · 0.92
GetTasksMethod · 0.92
GetTasksMethod · 0.92
GetTasksMethod · 0.92
GetArchiveMetaFunction · 0.85
ListArchiveFunction · 0.85
DriverExtractFunction · 0.85
ArchiveDecompressFunction · 0.85
DeleteDirectoryTreeMethod · 0.85
DeleteDirectoryMethod · 0.85
removeDirectoryObjectMethod · 0.85

Calls 2

GetFullPathFunction · 0.92
GetStorageMethod · 0.65

Tested by

no test coverage detected