Skip to content

Commit

Permalink
Skip sizing folders on permission error. Fixes #968 (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored May 4, 2021
1 parent b96e8d4 commit be6a39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vorta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_directory_size(dir_path):
if stat.st_ino not in seen: # Visit each file only once
seen.add(stat.st_ino)
data_size += stat.st_size
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
continue

files_count = len(seen)
Expand Down

0 comments on commit be6a39b

Please sign in to comment.