{"action":"created","issue":{"url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/62","repository_url":"https://api.github.com/repos/szwacz/fs-jetpack","labels_url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/62/comments","events_url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/62/events","html_url":"https://github.com/szwacz/fs-jetpack/issues/62","id":295288055,"number":62,"title":"Default .copy overwrite would be welcome","user":{"login":"mwpowellhtx","id":1824187,"avatar_url":"https://avatars2.githubusercontent.com/u/1824187?v=4","gravatar_id":"","url":"https://api.github.com/users/mwpowellhtx","html_url":"https://github.com/mwpowellhtx","followers_url":"https://api.github.com/users/mwpowellhtx/followers","following_url":"https://api.github.com/users/mwpowellhtx/following{/other_user}","gists_url":"https://api.github.com/users/mwpowellhtx/gists{/gist_id}","starred_url":"https://api.github.com/users/mwpowellhtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwpowellhtx/subscriptions","organizations_url":"https://api.github.com/users/mwpowellhtx/orgs","repos_url":"https://api.github.com/users/mwpowellhtx/repos","events_url":"https://api.github.com/users/mwpowellhtx/events{/privacy}","received_events_url":"https://api.github.com/users/mwpowellhtx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-07T20:51:00Z","updated_at":"2018-02-13T15:25:36Z","closed_at":"2018-02-13T09:04:37Z","author_association":"NONE","body":"When  I file is copying for the first time, i.e. does not exist in the destination, it would be great if a default ``overwrite`` were to be provided.\r\n\r\nAssuming ``opts`` is passed to ``.copy``, i.e. as follows:\r\n\r\n```JavaScript\r\nopts.overwrite = () => true;\r\n```\r\n\r\nIt is easy enough for me to provide one, but as a matter of doing business, especially after I've checked for existence of the destination, I do not expect to have to provide a default callback."},"comment":{"url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/comments/365300030","html_url":"https://github.com/szwacz/fs-jetpack/issues/62#issuecomment-365300030","issue_url":"https://api.github.com/repos/szwacz/fs-jetpack/issues/62","id":365300030,"user":{"login":"mwpowellhtx","id":1824187,"avatar_url":"https://avatars2.githubusercontent.com/u/1824187?v=4","gravatar_id":"","url":"https://api.github.com/users/mwpowellhtx","html_url":"https://github.com/mwpowellhtx","followers_url":"https://api.github.com/users/mwpowellhtx/followers","following_url":"https://api.github.com/users/mwpowellhtx/following{/other_user}","gists_url":"https://api.github.com/users/mwpowellhtx/gists{/gist_id}","starred_url":"https://api.github.com/users/mwpowellhtx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwpowellhtx/subscriptions","organizations_url":"https://api.github.com/users/mwpowellhtx/orgs","repos_url":"https://api.github.com/users/mwpowellhtx/repos","events_url":"https://api.github.com/users/mwpowellhtx/events{/privacy}","received_events_url":"https://api.github.com/users/mwpowellhtx/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T15:25:36Z","updated_at":"2018-02-13T15:25:36Z","author_association":"NONE","body":"@szwacz If I add the following line, then the operation \"works\", but I contend it shouldn't really be necessary.\r\n\r\n```JavaScript\r\ncopyOpts.overwrite = () => true;\r\nfs.copy(srcDir, repoDir, copyOpts);\r\n```\r\n"}}
{"actor":{"display_login":"mwpowellhtx"}}