Commit Graph

1 Commits

Author SHA1 Message Date
Simon Arlott 88a72ea14d
Handle access errors scanning directories
Trying to read a directory that is visible but not accessible, or a
symlink to a file in a directory that is not accessible will raise a
PermissionError. Output these and then continue.

If os.scandir() raises an exception then the finally block accesses
"scanner" before it is assigned, raising an UnboundLocalError.
2020-06-21 10:19:04 +01:00