{"action":"created","issue":{"url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/8","labels_url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/8/comments","events_url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/8/events","html_url":"https://github.com/hartator/wayback-machine-downloader/issues/8","id":104887655,"number":8,"title":"When file exists, the program exits","user":{"login":"sigginet","id":1608474,"avatar_url":"https://avatars.githubusercontent.com/u/1608474?v=3","gravatar_id":"","url":"https://api.github.com/users/sigginet","html_url":"https://github.com/sigginet","followers_url":"https://api.github.com/users/sigginet/followers","following_url":"https://api.github.com/users/sigginet/following{/other_user}","gists_url":"https://api.github.com/users/sigginet/gists{/gist_id}","starred_url":"https://api.github.com/users/sigginet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigginet/subscriptions","organizations_url":"https://api.github.com/users/sigginet/orgs","repos_url":"https://api.github.com/users/sigginet/repos","events_url":"https://api.github.com/users/sigginet/events{/privacy}","received_events_url":"https://api.github.com/users/sigginet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T13:10:01Z","updated_at":"2015-09-05T04:33:09Z","closed_at":null,"body":"Hey there,\r\n\r\nNice piece of software!! :)\r\n\r\nI found a bug though. When downloading item 4053, the file already existed as a single file, thus a folder could not be created.\r\n\r\nHere's the error:\r\n`http://REDACTED.com/uncategorized/reflective-thoughts-on-marriage/ -> websites/REDACTED.com/uncategorized/reflective-thoughts-on-marriage/index.html (4052/48177)\r\nhttp://REDACTED.com/uncategorized/doing-the-important-stuff/ -> websites/REDACTED.com/uncategorized/doing-the-important-stuff/index.html (4053/48177)\r\n# File exists - websites/REDACTED.com/www.REDACTED2.com\r\n/usr/lib/ruby/1.9.1/fileutils.rb:1515:in `stat': No such file or directory - File exists - websites/REDACTED.com/www.REDACTED2.com (Errno::ENOENT)\r\n        from /usr/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_src_dest'\r\n        from /usr/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'\r\n        from /usr/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'\r\n        from /usr/lib/ruby/1.9.1/fileutils.rb:508:in `mv'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/lib/wayback_machine_downloader.rb:116:in `rescue in structure_dir_path'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/lib/wayback_machine_downloader.rb:109:in `structure_dir_path'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/lib/wayback_machine_downloader.rb:83:in `block in download_files'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/lib/wayback_machine_downloader.rb:66:in `each'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/lib/wayback_machine_downloader.rb:66:in `download_files'\r\n        from /var/lib/gems/1.9.1/gems/wayback_machine_downloader-0.1.15/bin/wayback_machine_downloader:27:in `<top (required)>'\r\n        from /usr/local/bin/wayback_machine_downloader:23:in `load'\r\n        from /usr/local/bin/wayback_machine_downloader:23:in `<main>'`\r\n\r\nHere's an ls of the file\r\n`ubuntu@ip-172-30-0-198:~$ ll websites/REDACTED.com/www.REDACTED2.com \r\n-rw-rw-r-- 1 ubuntu ubuntu 27286 Sep  4 07:44 websites/REDACTED.com/www.REDACTED2.com`"},"comment":{"url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/comments/137910021","html_url":"https://github.com/hartator/wayback-machine-downloader/issues/8#issuecomment-137910021","issue_url":"https://api.github.com/repos/hartator/wayback-machine-downloader/issues/8","id":137910021,"user":{"login":"hartator","id":307597,"avatar_url":"https://avatars.githubusercontent.com/u/307597?v=3","gravatar_id":"","url":"https://api.github.com/users/hartator","html_url":"https://github.com/hartator","followers_url":"https://api.github.com/users/hartator/followers","following_url":"https://api.github.com/users/hartator/following{/other_user}","gists_url":"https://api.github.com/users/hartator/gists{/gist_id}","starred_url":"https://api.github.com/users/hartator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hartator/subscriptions","organizations_url":"https://api.github.com/users/hartator/orgs","repos_url":"https://api.github.com/users/hartator/repos","events_url":"https://api.github.com/users/hartator/events{/privacy}","received_events_url":"https://api.github.com/users/hartator/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T04:33:09Z","updated_at":"2015-09-05T04:33:09Z","body":"Do you mind sending me the backtrace non-redacted as well? \r\n\r\nJust copy/past without any edition, I am not able to reproduce."}}