-
Notifications
You must be signed in to change notification settings - Fork 775
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
ensure for link & symlink #165
ensure for link & symlink #165
Conversation
Added:
|
Should an error be thrown if the destination path exists? |
dbd7911
to
3040283
Compare
3040283
to
66dc67f
Compare
I don't think so. Thanks for your hard work on this, I really appreciate it! Published |
The functions currently return an error for async and throw for sync if the destination path exists because that's the native functionality of |
Yeah, I think that they should be normalized to not throw errors if the destination exists. I mean, the intent of the caller of these methods is to just make sure that they exist regardless of whether they existed before said method was called. Don't you think? |
As expressed here I feel weird throwing the err away. My current usage for this function is as follows, please forgive the promises.
So for control-flow it's useful to know if something has been created or not. Thats why I expressed the need for I agree though with this:
Crafting PR(s) now. |
No description provided.