You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe there may be an issue in PyDirDuplicateFinder.
Just in case you haven't noticed it yet:
If there are links on filesystem to files paths that no longer exist, e.g. target files have been
deleted, an exception is raised when performing "stats = os.stat(entry_path)", main(), line
270.
A simple way to solve it is, for example:
for entry_path in entries:
try:
stats = os.stat(entry_path)
except OSError: ### Needed because entry_path may be a link to a no-longer
existent file
continue
except Exception, err: ### DBG - check err Exception type or other cleanup
raise(err)
entry = os.path.basename(entry_path)
files.append({'name': entry, 'path' : entry_path, 'size': stats.st_size})
The text was updated successfully, but these errors were encountered:
From Jose Lourenco
Hello,
I believe there may be an issue in PyDirDuplicateFinder.
Just in case you haven't noticed it yet:
If there are links on filesystem to files paths that no longer exist, e.g. target files have been
deleted, an exception is raised when performing "stats = os.stat(entry_path)", main(), line
270.
A simple way to solve it is, for example:
existent file
continue
except Exception, err: ### DBG - check err Exception type or other cleanup
raise(err)
entry = os.path.basename(entry_path)
files.append({'name': entry, 'path' : entry_path, 'size': stats.st_size})
The text was updated successfully, but these errors were encountered: