Skip to content

Commit ebcd785

Browse files
authored
Merge pull request #525 from Backblaze/fix-win-perm-handling
Fix file permission handling on windows
2 parents 72772f4 + 606a612 commit ebcd785

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

b2sdk/_internal/scan/folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _file_read_access(path):
114114
try:
115115
with open(path, 'rb', buffering=0):
116116
return True
117-
except PermissionError:
117+
except (FileNotFoundError, PermissionError):
118118
return False
119119
else:
120120

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix file/directory permission handling for Windows during the B2 sync.

0 commit comments

Comments
 (0)