Skip to content

Commit

Permalink
Ignore lock files, not the whole directory they are in
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Oct 15, 2024
1 parent 8b0fb7f commit b28d666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/storage/fs/posix/tree/assimilation.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,10 @@ 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 and upload files
if isLockFile(path) || isTrash(path) || t.isUpload(path) {
if isLockFile(path) {
return nil
}
if isTrash(path) || t.isUpload(path) {
return filepath.SkipDir
}

Expand Down

0 comments on commit b28d666

Please sign in to comment.