-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add options to fse.remove*() ? #840
Comments
Yeah since Node has that option, we should add that too. I also agree with you that we should use
😄 agreed! I am not sure about the name tho! Maybe |
Should we not align ourselves with |
Our default behavior cannot change, and our default behavior is the exact opposite of |
From what I recall, this default behavior was chosen because of the |
No, The way I see it, we have 3 options:
|
What if |
|
|
As per #968 (comment); |
Opening a new issue to continue discussions from #246 & #785 on a fresh thread. CC: @CxRes @kutyepov
There have been various proposals to add an option that would make
fse.remove
error on nonexistent paths. Given that Node's newfs.rm
method supports this (#806), I'm open to the idea. However, I would appreciate input from the other maintainers here.Another remaining question is what this option should be named.
force
would followfs.rm
, but it would be a default-true
option, which I kind of dislike.shoutMissing
was proposed in #785, but I'm not strongly for or against that name. Naming stuff is hard, ideas wanted.The text was updated successfully, but these errors were encountered: