duplicate-files icon indicating copy to clipboard operation
duplicate-files copied to clipboard

When a symbolic link is broken or encounters a socket file, it stops

Open egberts opened this issue 7 years ago • 0 comments

It would appear that broken soft symbolic link and socket files makes DuplicateFiles.py abort.

python DuplicateFiles.py -root /home/egbert/Documents/
Traceback (most recent call last):
  File "DuplicateFiles.py", line 50, in <module>
    DUPS = find_duplicates( ARGS.root )
  File "DuplicateFiles.py", line 21, in find_duplicates
    with open( filepath ) as openfile:
IOError: [Errno 6] No such device or address: '/home/egbert/Documents/home/internet/laptops/macosx-home-egbert-hiddenfiles/.ondmd50555'

Notice the socket file type.

$~/work/python/duplicate-files$ ls -lat /home/egbert/Documents/home/internet/laptops/macosx-home-egbert-hiddenfiles/.ondmd50555
sr-x------ 1 egbert egbert 0 Jan 16  2016 /home/egbert/Documents/home/internet/laptops/macosx-home-egbert-hiddenfiles/.ondmd50555
$~/work/python/duplicate-files$ 

egberts avatar Apr 15 '18 21:04 egberts