Skip to content

Commit

Permalink
Recursively skip trash dirs, not just the dirs themself
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Oct 8, 2024
1 parent 45bbaae commit 2808eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/fs/posix/tree/assimilation.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ func (t *Tree) WarmupIDCache(root string, assimilate, onlyDirty bool) error {

sizes := make(map[string]int64)
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
// skip lock files
if isLockFile(path) {
return nil
// skip lock and upload files
if isLockFile(path) || isTrash(path) || t.isUpload(path) {
return filepath.SkipDir
}

if err != nil {
Expand Down

0 comments on commit 2808eca

Please sign in to comment.