{"action":"created","issue":{"url":"https://api.github.com/repos/dhnunes/pdedup/issues/4","repository_url":"https://api.github.com/repos/dhnunes/pdedup","labels_url":"https://api.github.com/repos/dhnunes/pdedup/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dhnunes/pdedup/issues/4/comments","events_url":"https://api.github.com/repos/dhnunes/pdedup/issues/4/events","html_url":"https://github.com/dhnunes/pdedup/issues/4","id":333873959,"node_id":"MDU6SXNzdWUzMzM4NzM5NTk=","number":4,"title":"[BUG] Broken Sym links breaks app with stack trace","user":{"login":"dhnunes","id":9708904,"node_id":"MDQ6VXNlcjk3MDg5MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9708904?v=4","gravatar_id":"","url":"https://api.github.com/users/dhnunes","html_url":"https://github.com/dhnunes","followers_url":"https://api.github.com/users/dhnunes/followers","following_url":"https://api.github.com/users/dhnunes/following{/other_user}","gists_url":"https://api.github.com/users/dhnunes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhnunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhnunes/subscriptions","organizations_url":"https://api.github.com/users/dhnunes/orgs","repos_url":"https://api.github.com/users/dhnunes/repos","events_url":"https://api.github.com/users/dhnunes/events{/privacy}","received_events_url":"https://api.github.com/users/dhnunes/received_events","type":"User","site_admin":false},"labels":[{"id":961573824,"node_id":"MDU6TGFiZWw5NjE1NzM4MjQ=","url":"https://api.github.com/repos/dhnunes/pdedup/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-19T23:28:57Z","updated_at":"2018-07-17T14:43:37Z","closed_at":null,"author_association":"OWNER","body":"Hey,\r\n\r\nWhen running against a directory that has broken symbolic links , app just breaks:\r\n\r\n$ python pdedup.py -d /home/dnunes                                             \r\nWalking into directory tree...\r\nTraceback (most recent call last):\r\n  File \"pdedup.py\", line 14, in <module>\r\n    result = file.file_walker()\r\n  File \"/home/dnunes/Code/Python/pdedup/Library/filehasher.py\", line 64, in file_walker\r\n    if os.path.getsize(os.path.join(root, file)):\r\n  File \"/home/dnunes/.virtualenvs/pdedup/lib64/python3.7/genericpath.py\", line 50, in getsize\r\n    return os.stat(filename).st_size\r\nFileNotFoundError: [Errno 2] No such file or directory: '/home/dnunes/.steampath'"},"comment":{"url":"https://api.github.com/repos/dhnunes/pdedup/issues/comments/405607420","html_url":"https://github.com/dhnunes/pdedup/issues/4#issuecomment-405607420","issue_url":"https://api.github.com/repos/dhnunes/pdedup/issues/4","id":405607420,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTYwNzQyMA==","user":{"login":"dhnunes","id":9708904,"node_id":"MDQ6VXNlcjk3MDg5MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9708904?v=4","gravatar_id":"","url":"https://api.github.com/users/dhnunes","html_url":"https://github.com/dhnunes","followers_url":"https://api.github.com/users/dhnunes/followers","following_url":"https://api.github.com/users/dhnunes/following{/other_user}","gists_url":"https://api.github.com/users/dhnunes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhnunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhnunes/subscriptions","organizations_url":"https://api.github.com/users/dhnunes/orgs","repos_url":"https://api.github.com/users/dhnunes/repos","events_url":"https://api.github.com/users/dhnunes/events{/privacy}","received_events_url":"https://api.github.com/users/dhnunes/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T14:43:37Z","updated_at":"2018-07-17T14:43:37Z","author_association":"OWNER","body":"I've able to reproduce this problem:\r\n\r\n$ cd sample-data\r\n$ ls\r\ncopy-teste1  teste1  teste2  teste3  teste4  teste5\r\n$ ln -s teste01 link-teste01\r\n$ ll\r\ntotal 24K\r\n-rw-r--r--. 1 dnunes dnunes 427 Jul 17 11:08 copy-teste1\r\nlrwxrwxrwx. 1 dnunes dnunes   7 Jul 17 11:32 link-teste01 -> teste01\r\n-rw-r--r--. 1 dnunes dnunes 427 Jul 17 11:07 teste1\r\n-rw-r--r--. 1 dnunes dnunes 396 Jul 17 11:07 teste2\r\n-rw-r--r--. 1 dnunes dnunes 400 Jul 17 11:07 teste3\r\n-rw-r--r--. 1 dnunes dnunes 409 Jul 17 11:07 teste4\r\n-rw-r--r--. 1 dnunes dnunes 404 Jul 17 11:07 teste5\r\n\r\n$ python pdedup.py -d sample-data\r\n\r\nTraceback (most recent call last):\r\n  File \"pdedup.py\", line 14, in <module>\r\n    result = file.file_walker()\r\n  File \"/home/dnunes/Code/Python/pdedup/Library/filehasher.py\", line 70, in file_walker\r\n    if os.path.getsize(os.path.join(root, file)):\r\n  File \"/home/dnunes/.virtualenvs/pdedup/lib64/python3.7/genericpath.py\", line 50, in getsize\r\n    return os.stat(filename).st_size\r\nFileNotFoundError: [Errno 2] No such file or directory: 'sample-data/link-teste01'"}}
{"actor":{"display_login":"dhnunes"}}