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 8468d72
Showing 1 changed file with 1 addition 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

0 comments on commit 8468d72

Please sign in to comment.