mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
[#122 state:fixed] Fixed crash on scanning when file is being deleted during the scan.
This commit is contained in:
parent
f1b4db368e
commit
3a9f51b600
@ -113,7 +113,11 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
||||
seen_inodes = set()
|
||||
result = []
|
||||
for file in files:
|
||||
inode = io.stat(file.path).st_ino
|
||||
try:
|
||||
inode = io.stat(file.path).st_ino
|
||||
except OSError:
|
||||
# The file was probably deleted or something
|
||||
continue
|
||||
if inode not in seen_inodes:
|
||||
seen_inodes.add(inode)
|
||||
result.append(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user