Skip to content

Commit

Permalink
pref: ignore directory and files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey committed Feb 8, 2025
1 parent 552649d commit 9cae519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/filesystem/file_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func FindDuplicates(dir string, ignoreList []string) ([][]string, error) {
return err
}

if info.IsDir() && utils.IsIgnored(path, ignoreList) {
if utils.IsIgnored(path, ignoreList) {
return filepath.SkipDir
}

Expand Down
2 changes: 1 addition & 1 deletion internal/filesystem/space_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func AnalyzeSpace(dir string, top int, ignoreList []string) ([]FileSize, error)
return err
}

if info.IsDir() && utils.IsIgnored(path, ignoreList) {
if utils.IsIgnored(path, ignoreList) {
return filepath.SkipDir
}

Expand Down

0 comments on commit 9cae519

Please sign in to comment.