Skip to content

Commit

Permalink
Merge pull request #525 from Backblaze/fix-win-perm-handling
Browse files Browse the repository at this point in the history
Fix file permission handling on windows
  • Loading branch information
mlech-reef authored Dec 1, 2024
2 parents 72772f4 + 606a612 commit ebcd785
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 ebcd785

Please sign in to comment.