recursively delete directory and its children from dirCache
(storage driver.Driver, dirPath string)
| 38 | |
| 39 | // recursively delete directory and its children from dirCache |
| 40 | func (cm *CacheManager) DeleteDirectoryTree(storage driver.Driver, dirPath string) { |
| 41 | if storage.Config().NoCache { |
| 42 | return |
| 43 | } |
| 44 | cm.deleteDirectoryTree(Key(storage, dirPath)) |
| 45 | } |
| 46 | func (cm *CacheManager) deleteDirectoryTree(key string) { |
| 47 | if dirCache, exists := cm.dirCache.Pop(key); exists { |
| 48 | for _, obj := range dirCache.objs { |
no test coverage detected