Skip to content

Commit

Permalink
Fix file permission handling on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mlech-reef committed Nov 26, 2024
1 parent 72772f4 commit 606a612
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion b2sdk/_internal/scan/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _file_read_access(path):
try:
with open(path, 'rb', buffering=0):
return True
except PermissionError:
except (FileNotFoundError, PermissionError):
return False
else:

Expand Down
1 change: 1 addition & 0 deletions changelog.d/+fix_perms_handling_for_win.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix file/directory permission handling for Windows during the B2 sync.

0 comments on commit 606a612

Please sign in to comment.