{"action":"created","issue":{"url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/6","labels_url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/6/comments","events_url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/6/events","html_url":"https://github.com/ctberthiaume/gdcp/issues/6","id":55358245,"number":6,"title":"missing file crash","user":{"login":"ohthetrees","id":1884467,"avatar_url":"https://avatars.githubusercontent.com/u/1884467?v=3","gravatar_id":"","url":"https://api.github.com/users/ohthetrees","html_url":"https://github.com/ohthetrees","followers_url":"https://api.github.com/users/ohthetrees/followers","following_url":"https://api.github.com/users/ohthetrees/following{/other_user}","gists_url":"https://api.github.com/users/ohthetrees/gists{/gist_id}","starred_url":"https://api.github.com/users/ohthetrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohthetrees/subscriptions","organizations_url":"https://api.github.com/users/ohthetrees/orgs","repos_url":"https://api.github.com/users/ohthetrees/repos","events_url":"https://api.github.com/users/ohthetrees/events{/privacy}","received_events_url":"https://api.github.com/users/ohthetrees/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-24T04:14:28Z","updated_at":"2015-05-01T18:11:14Z","closed_at":"2015-05-01T18:11:14Z","body":"gdcp doesn't like it when you delete a file out from underneath it. \r\n\r\nThis may best be filed under \"won't fix\".\r\n\r\nThis time it failed while checking the checksum, but I'm sure it would have been ugly during the upload too. \r\n\r\n```\r\n01/23/2015 08:11:18 PM    INFO       gdcp                      : Uploading /Old_3TB/Cedar/xtandem/7_protein/P1F3D2000.proph_FVAL_4.png, mimeType=image/png\r\n01/23/2015 08:11:19 PM    INFO       gdcp                      : Uploaded 100.00%.  2875 bytes in 1.12s (0.00MB/s)\r\n01/23/2015 08:11:19 PM    INFO       gdcp                      : Calculating MD5 checksum for /Old_3TB/Cedar/xtandem/7_protein/P1F3D2000.proph_FVAL_4.png\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/gdcp\", line 998, in <module>\r\n    main()\r\n  File \"/usr/local/bin/gdcp\", line 39, in main\r\n    cli()\r\n  File \"/usr/local/bin/gdcp\", line 889, in cli\r\n    args.func(args)\r\n  File \"/usr/local/bin/gdcp\", line 954, in cli_upload_file\r\n    not args.no_checksum)\r\n  File \"/usr/local/bin/gdcp\", line 571, in upload_folder\r\n    drive, subdir, parent_id=folder_id, checksum=checksum)\r\n  File \"/usr/local/bin/gdcp\", line 571, in upload_folder\r\n    drive, subdir, parent_id=folder_id, checksum=checksum)\r\n  File \"/usr/local/bin/gdcp\", line 571, in upload_folder\r\n    drive, subdir, parent_id=folder_id, checksum=checksum)\r\n  File \"/usr/local/bin/gdcp\", line 566, in upload_folder\r\n    drive, onefile, parent_id=folder_id, checksum=checksum)\r\n  File \"/usr/local/bin/gdcp\", line 537, in upload_file\r\n    if not check_md5(file_path, response[\"md5Checksum\"]):\r\n  File \"/usr/local/bin/gdcp\", line 634, in check_md5\r\n    output.rstrip())\r\nUnboundLocalError: local variable 'output' referenced before assignment\r\n```"},"comment":{"url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/comments/98191082","html_url":"https://github.com/ctberthiaume/gdcp/issues/6#issuecomment-98191082","issue_url":"https://api.github.com/repos/ctberthiaume/gdcp/issues/6","id":98191082,"user":{"login":"ctberthiaume","id":446244,"avatar_url":"https://avatars.githubusercontent.com/u/446244?v=3","gravatar_id":"","url":"https://api.github.com/users/ctberthiaume","html_url":"https://github.com/ctberthiaume","followers_url":"https://api.github.com/users/ctberthiaume/followers","following_url":"https://api.github.com/users/ctberthiaume/following{/other_user}","gists_url":"https://api.github.com/users/ctberthiaume/gists{/gist_id}","starred_url":"https://api.github.com/users/ctberthiaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctberthiaume/subscriptions","organizations_url":"https://api.github.com/users/ctberthiaume/orgs","repos_url":"https://api.github.com/users/ctberthiaume/repos","events_url":"https://api.github.com/users/ctberthiaume/events{/privacy}","received_events_url":"https://api.github.com/users/ctberthiaume/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T18:11:14Z","updated_at":"2015-05-01T18:11:14Z","body":"I think it's OK to leave this one unfixed for now. You can delete files within a directory tree that's being uploaded, just not ones that are at the same level as the directory being processed during some recursive traversal. So these kinds of errors (file deleted during processing) won't come up too often I think, and it should be obvious which file deletion caused the error when they occur."}}