{"action":"created","issue":{"url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/252","repository_url":"https://api.github.com/repos/jprichardson/node-fs-extra","labels_url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/252/comments","events_url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/252/events","html_url":"https://github.com/jprichardson/node-fs-extra/pull/252","id":160553683,"number":252,"title":"Fixing problem when copying file with no write permission","user":{"login":"weexpectedTHIS","id":439809,"avatar_url":"https://avatars.githubusercontent.com/u/439809?v=3","gravatar_id":"","url":"https://api.github.com/users/weexpectedTHIS","html_url":"https://github.com/weexpectedTHIS","followers_url":"https://api.github.com/users/weexpectedTHIS/followers","following_url":"https://api.github.com/users/weexpectedTHIS/following{/other_user}","gists_url":"https://api.github.com/users/weexpectedTHIS/gists{/gist_id}","starred_url":"https://api.github.com/users/weexpectedTHIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weexpectedTHIS/subscriptions","organizations_url":"https://api.github.com/users/weexpectedTHIS/orgs","repos_url":"https://api.github.com/users/weexpectedTHIS/repos","events_url":"https://api.github.com/users/weexpectedTHIS/events{/privacy}","received_events_url":"https://api.github.com/users/weexpectedTHIS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-16T00:31:06Z","updated_at":"2016-06-16T03:33:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jprichardson/node-fs-extra/pulls/252","html_url":"https://github.com/jprichardson/node-fs-extra/pull/252","diff_url":"https://github.com/jprichardson/node-fs-extra/pull/252.diff","patch_url":"https://github.com/jprichardson/node-fs-extra/pull/252.patch"},"body":"The 3rd parameter passed to openSync is setting the mode for the destination file, and if the source does not have write permissions, then the destination wouldn't have write permissions. It is best to use the default mode (which is 0666) and set the permissions after closing the file for write."},"comment":{"url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/comments/226380008","html_url":"https://github.com/jprichardson/node-fs-extra/pull/252#issuecomment-226380008","issue_url":"https://api.github.com/repos/jprichardson/node-fs-extra/issues/252","id":226380008,"user":{"login":"jprichardson","id":150063,"avatar_url":"https://avatars.githubusercontent.com/u/150063?v=3","gravatar_id":"","url":"https://api.github.com/users/jprichardson","html_url":"https://github.com/jprichardson","followers_url":"https://api.github.com/users/jprichardson/followers","following_url":"https://api.github.com/users/jprichardson/following{/other_user}","gists_url":"https://api.github.com/users/jprichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/jprichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprichardson/subscriptions","organizations_url":"https://api.github.com/users/jprichardson/orgs","repos_url":"https://api.github.com/users/jprichardson/repos","events_url":"https://api.github.com/users/jprichardson/events{/privacy}","received_events_url":"https://api.github.com/users/jprichardson/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T03:33:27Z","updated_at":"2016-06-16T03:33:27Z","body":"Please run `npm test` and fix the errors and squash. Thanks."}}
{"actor":{"display_login":"jprichardson"}}