mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34: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()
|
seen_inodes = set()
|
||||||
result = []
|
result = []
|
||||||
for file in files:
|
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:
|
if inode not in seen_inodes:
|
||||||
seen_inodes.add(inode)
|
seen_inodes.add(inode)
|
||||||
result.append(file)
|
result.append(file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user