Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
egberts opened this issue Apr 15, 2018 · 0 comments
Open

Comments

@egberts
Copy link

egberts commented Apr 15, 2018

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$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant