{"action":"opened","number":156,"pull_request":{"url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156","id":68510102,"html_url":"https://github.com/dsoprea/GDriveFS/pull/156","diff_url":"https://github.com/dsoprea/GDriveFS/pull/156.diff","patch_url":"https://github.com/dsoprea/GDriveFS/pull/156.patch","issue_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/156","number":156,"state":"open","locked":false,"title":"Improved temporary file management","user":{"login":"dsoprea","id":715626,"avatar_url":"https://avatars.githubusercontent.com/u/715626?v=3","gravatar_id":"","url":"https://api.github.com/users/dsoprea","html_url":"https://github.com/dsoprea","followers_url":"https://api.github.com/users/dsoprea/followers","following_url":"https://api.github.com/users/dsoprea/following{/other_user}","gists_url":"https://api.github.com/users/dsoprea/gists{/gist_id}","starred_url":"https://api.github.com/users/dsoprea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsoprea/subscriptions","organizations_url":"https://api.github.com/users/dsoprea/orgs","repos_url":"https://api.github.com/users/dsoprea/repos","events_url":"https://api.github.com/users/dsoprea/events{/privacy}","received_events_url":"https://api.github.com/users/dsoprea/received_events","type":"User","site_admin":false},"body":"From the commit message:\r\n\r\nWe now delete temporary files after release.\r\n\r\n- Eliminated potential temporary file naming collisions by using the file-counter as the filename.\r\n- Fixed progress-reporting in the log (printing the function __str__ rather than the float).\r\n- Renamed _logger to _LOGGER in the OF module.\r\n\r\nThe log will show the following (near the end):\r\n\r\n```\r\n2016-05-01 22:28:19,941 [gdrivefs.gdfs.fsutility DEBUG] --------------------------------------------------\r\n2016-05-01 22:28:19,941 [gdrivefs.gdfs.fsutility DEBUG] >>>>>>>>>> flush(12) >>>>>>>>>> (25497)\r\n2016-05-01 22:28:19,941 [gdrivefs.gdfs.fsutility DEBUG] DATA: fh= [3]  filepath= [/Echo Dreaming - 2015-11-16.MP4]\r\n2016-05-01 22:28:19,942 [gdrivefs.gdfs.fsutility DEBUG] OF: >>>>>>>>>> flush(2) >>>>>>>>>> (25497)\r\n2016-05-01 22:28:19,943 [gdrivefs.gdfs.opened_file DEBUG] Flushing opened-file.\r\n2016-05-01 22:28:19,943 [gdrivefs.gdfs.opened_file DEBUG] Flush will be skipped for [0B5Ft2OXeDBqSekllazRpR0VtamM] because there are no changes: [/Echo Dreaming - 2015-11-16.MP4] IS_LOADED=[True] IS_DIRTY=[0]\r\n2016-05-01 22:28:19,943 [gdrivefs.gdfs.fsutility DEBUG] OF: <<<<<<<<<< flush(2) (25497)\r\n2016-05-01 22:28:19,943 [gdrivefs.gdfs.fsutility DEBUG] <<<<<<<<<< flush(12) (25497)\r\n   unique: 1658, success, outsize: 16\r\nunique: 1659, opcode: RELEASE (18), nodeid: 17, insize: 64, pid: 0\r\nrelease[3] flags: 0x8000\r\n2016-05-01 22:28:19,944 [gdrivefs.gdfs.fsutility DEBUG] --------------------------------------------------\r\n2016-05-01 22:28:19,944 [gdrivefs.gdfs.fsutility DEBUG] >>>>>>>>>> release(10) >>>>>>>>>> (0)\r\n2016-05-01 22:28:19,944 [gdrivefs.gdfs.fsutility DEBUG] DATA: fh= [3]  filepath= [/Echo Dreaming - 2015-11-16.MP4]\r\n2016-05-01 22:28:19,945 [gdrivefs.gdfs.opened_file DEBUG] Closing opened-file with handle (3).\r\n2016-05-01 22:28:19,947 [gdrivefs.gdfs.opened_file DEBUG] Removing temporary file [/tmp/tmpx3p2Ao/1] ([/Echo Dreaming - 2015-11-16.MP4]).\r\n2016-05-01 22:28:19,963 [gdrivefs.gdfs.fsutility DEBUG] <<<<<<<<<< release(10) (0)\r\n   unique: 1659, success, outsize: 16\r\nunique: 1660, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 25487\r\ngetattr /\r\n```\r\n","created_at":"2016-05-01T22:43:00Z","updated_at":"2016-05-01T22:43:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156/commits","review_comments_url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156/comments","review_comment_url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/156/comments","statuses_url":"https://api.github.com/repos/dsoprea/GDriveFS/statuses/cd7ea450ed21eaeff58b1ea422e678187454758a","head":{"label":"dsoprea:opened_file_cleanup","ref":"opened_file_cleanup","sha":"cd7ea450ed21eaeff58b1ea422e678187454758a","user":{"login":"dsoprea","id":715626,"avatar_url":"https://avatars.githubusercontent.com/u/715626?v=3","gravatar_id":"","url":"https://api.github.com/users/dsoprea","html_url":"https://github.com/dsoprea","followers_url":"https://api.github.com/users/dsoprea/followers","following_url":"https://api.github.com/users/dsoprea/following{/other_user}","gists_url":"https://api.github.com/users/dsoprea/gists{/gist_id}","starred_url":"https://api.github.com/users/dsoprea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsoprea/subscriptions","organizations_url":"https://api.github.com/users/dsoprea/orgs","repos_url":"https://api.github.com/users/dsoprea/repos","events_url":"https://api.github.com/users/dsoprea/events{/privacy}","received_events_url":"https://api.github.com/users/dsoprea/received_events","type":"User","site_admin":false},"repo":{"id":5488471,"name":"GDriveFS","full_name":"dsoprea/GDriveFS","owner":{"login":"dsoprea","id":715626,"avatar_url":"https://avatars.githubusercontent.com/u/715626?v=3","gravatar_id":"","url":"https://api.github.com/users/dsoprea","html_url":"https://github.com/dsoprea","followers_url":"https://api.github.com/users/dsoprea/followers","following_url":"https://api.github.com/users/dsoprea/following{/other_user}","gists_url":"https://api.github.com/users/dsoprea/gists{/gist_id}","starred_url":"https://api.github.com/users/dsoprea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsoprea/subscriptions","organizations_url":"https://api.github.com/users/dsoprea/orgs","repos_url":"https://api.github.com/users/dsoprea/repos","events_url":"https://api.github.com/users/dsoprea/events{/privacy}","received_events_url":"https://api.github.com/users/dsoprea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsoprea/GDriveFS","description":"An innovative FUSE wrapper for Google Drive.","fork":false,"url":"https://api.github.com/repos/dsoprea/GDriveFS","forks_url":"https://api.github.com/repos/dsoprea/GDriveFS/forks","keys_url":"https://api.github.com/repos/dsoprea/GDriveFS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsoprea/GDriveFS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsoprea/GDriveFS/teams","hooks_url":"https://api.github.com/repos/dsoprea/GDriveFS/hooks","issue_events_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/events{/number}","events_url":"https://api.github.com/repos/dsoprea/GDriveFS/events","assignees_url":"https://api.github.com/repos/dsoprea/GDriveFS/assignees{/user}","branches_url":"https://api.github.com/repos/dsoprea/GDriveFS/branches{/branch}","tags_url":"https://api.github.com/repos/dsoprea/GDriveFS/tags","blobs_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsoprea/GDriveFS/statuses/{sha}","languages_url":"https://api.github.com/repos/dsoprea/GDriveFS/languages","stargazers_url":"https://api.github.com/repos/dsoprea/GDriveFS/stargazers","contributors_url":"https://api.github.com/repos/dsoprea/GDriveFS/contributors","subscribers_url":"https://api.github.com/repos/dsoprea/GDriveFS/subscribers","subscription_url":"https://api.github.com/repos/dsoprea/GDriveFS/subscription","commits_url":"https://api.github.com/repos/dsoprea/GDriveFS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsoprea/GDriveFS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsoprea/GDriveFS/contents/{+path}","compare_url":"https://api.github.com/repos/dsoprea/GDriveFS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsoprea/GDriveFS/merges","archive_url":"https://api.github.com/repos/dsoprea/GDriveFS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsoprea/GDriveFS/downloads","issues_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues{/number}","pulls_url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls{/number}","milestones_url":"https://api.github.com/repos/dsoprea/GDriveFS/milestones{/number}","notifications_url":"https://api.github.com/repos/dsoprea/GDriveFS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsoprea/GDriveFS/labels{/name}","releases_url":"https://api.github.com/repos/dsoprea/GDriveFS/releases{/id}","deployments_url":"https://api.github.com/repos/dsoprea/GDriveFS/deployments","created_at":"2012-08-21T00:21:17Z","updated_at":"2016-04-30T19:53:30Z","pushed_at":"2016-05-01T22:39:48Z","git_url":"git://github.com/dsoprea/GDriveFS.git","ssh_url":"git@github.com:dsoprea/GDriveFS.git","clone_url":"https://github.com/dsoprea/GDriveFS.git","svn_url":"https://github.com/dsoprea/GDriveFS","homepage":null,"size":915,"stargazers_count":293,"watchers_count":293,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":50,"forks":52,"open_issues":50,"watchers":293,"default_branch":"master"}},"base":{"label":"dsoprea:master","ref":"master","sha":"dacc066e023efb3a0a7247dd103e6a70dc6722d9","user":{"login":"dsoprea","id":715626,"avatar_url":"https://avatars.githubusercontent.com/u/715626?v=3","gravatar_id":"","url":"https://api.github.com/users/dsoprea","html_url":"https://github.com/dsoprea","followers_url":"https://api.github.com/users/dsoprea/followers","following_url":"https://api.github.com/users/dsoprea/following{/other_user}","gists_url":"https://api.github.com/users/dsoprea/gists{/gist_id}","starred_url":"https://api.github.com/users/dsoprea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsoprea/subscriptions","organizations_url":"https://api.github.com/users/dsoprea/orgs","repos_url":"https://api.github.com/users/dsoprea/repos","events_url":"https://api.github.com/users/dsoprea/events{/privacy}","received_events_url":"https://api.github.com/users/dsoprea/received_events","type":"User","site_admin":false},"repo":{"id":5488471,"name":"GDriveFS","full_name":"dsoprea/GDriveFS","owner":{"login":"dsoprea","id":715626,"avatar_url":"https://avatars.githubusercontent.com/u/715626?v=3","gravatar_id":"","url":"https://api.github.com/users/dsoprea","html_url":"https://github.com/dsoprea","followers_url":"https://api.github.com/users/dsoprea/followers","following_url":"https://api.github.com/users/dsoprea/following{/other_user}","gists_url":"https://api.github.com/users/dsoprea/gists{/gist_id}","starred_url":"https://api.github.com/users/dsoprea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsoprea/subscriptions","organizations_url":"https://api.github.com/users/dsoprea/orgs","repos_url":"https://api.github.com/users/dsoprea/repos","events_url":"https://api.github.com/users/dsoprea/events{/privacy}","received_events_url":"https://api.github.com/users/dsoprea/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsoprea/GDriveFS","description":"An innovative FUSE wrapper for Google Drive.","fork":false,"url":"https://api.github.com/repos/dsoprea/GDriveFS","forks_url":"https://api.github.com/repos/dsoprea/GDriveFS/forks","keys_url":"https://api.github.com/repos/dsoprea/GDriveFS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsoprea/GDriveFS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsoprea/GDriveFS/teams","hooks_url":"https://api.github.com/repos/dsoprea/GDriveFS/hooks","issue_events_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/events{/number}","events_url":"https://api.github.com/repos/dsoprea/GDriveFS/events","assignees_url":"https://api.github.com/repos/dsoprea/GDriveFS/assignees{/user}","branches_url":"https://api.github.com/repos/dsoprea/GDriveFS/branches{/branch}","tags_url":"https://api.github.com/repos/dsoprea/GDriveFS/tags","blobs_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsoprea/GDriveFS/statuses/{sha}","languages_url":"https://api.github.com/repos/dsoprea/GDriveFS/languages","stargazers_url":"https://api.github.com/repos/dsoprea/GDriveFS/stargazers","contributors_url":"https://api.github.com/repos/dsoprea/GDriveFS/contributors","subscribers_url":"https://api.github.com/repos/dsoprea/GDriveFS/subscribers","subscription_url":"https://api.github.com/repos/dsoprea/GDriveFS/subscription","commits_url":"https://api.github.com/repos/dsoprea/GDriveFS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsoprea/GDriveFS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsoprea/GDriveFS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsoprea/GDriveFS/contents/{+path}","compare_url":"https://api.github.com/repos/dsoprea/GDriveFS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsoprea/GDriveFS/merges","archive_url":"https://api.github.com/repos/dsoprea/GDriveFS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsoprea/GDriveFS/downloads","issues_url":"https://api.github.com/repos/dsoprea/GDriveFS/issues{/number}","pulls_url":"https://api.github.com/repos/dsoprea/GDriveFS/pulls{/number}","milestones_url":"https://api.github.com/repos/dsoprea/GDriveFS/milestones{/number}","notifications_url":"https://api.github.com/repos/dsoprea/GDriveFS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsoprea/GDriveFS/labels{/name}","releases_url":"https://api.github.com/repos/dsoprea/GDriveFS/releases{/id}","deployments_url":"https://api.github.com/repos/dsoprea/GDriveFS/deployments","created_at":"2012-08-21T00:21:17Z","updated_at":"2016-04-30T19:53:30Z","pushed_at":"2016-05-01T22:39:48Z","git_url":"git://github.com/dsoprea/GDriveFS.git","ssh_url":"git@github.com:dsoprea/GDriveFS.git","clone_url":"https://github.com/dsoprea/GDriveFS.git","svn_url":"https://github.com/dsoprea/GDriveFS","homepage":null,"size":915,"stargazers_count":293,"watchers_count":293,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":50,"forks":52,"open_issues":50,"watchers":293,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156"},"html":{"href":"https://github.com/dsoprea/GDriveFS/pull/156"},"issue":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/issues/156"},"comments":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/issues/156/comments"},"review_comments":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156/comments"},"review_comment":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/pulls/156/commits"},"statuses":{"href":"https://api.github.com/repos/dsoprea/GDriveFS/statuses/cd7ea450ed21eaeff58b1ea422e678187454758a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":127,"deletions":227,"changed_files":12}}