Skip to content

Commit 606a612

Browse files
committed
Fix file permission handling on windows
1 parent 72772f4 commit 606a612

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)