-
-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented overwrite
option in dest()
#59
Conversation
@@ -31,7 +31,9 @@ function writeContents(writePath, file, cb) { | |||
} | |||
|
|||
function written(err) { | |||
if (err) { | |||
var ignorableError = (err && err.code === 'EEXIST' && file.flag === 'wx'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canIgnoreError or isErrorFatal would be more descriptive imo
Very clean PR - one minor nitpick and I am +1 on merging this. Thanks! 🌴 |
Implemented `overwrite` option in `dest()`
Thanks! |
Available on master - will be published in the 4.0 release |
👍 |
@Narretz comments like that are not welcome here. Feel free to use the module directly. |
This is in reference to: #30
It seemed like the overwrite option was stubbed out, but the
wx
flag was never utilized in the fs operations. This commit wires it up, handles the error catch scenario and adds some tests. Let me know what you think!