1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-02-22 22:30:41 +00:00

Skip sizing folders on permission error. Fixes #968 (#969)

This commit is contained in:
Manu 2021-05-04 08:45:49 +08:00 committed by GitHub
parent b96e8d460e
commit be6a39bc29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)