-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Implement path:remove
#1679
Implement path:remove
#1679
Conversation
I considered adhering more closely to the traditional Unix `rm` and `rmdir` commands. For example, by implementing each independently and supporting the `--force` option. However, I concluded there are insufficient reasons to do so. In particular, the POSIX `--force` (or `-f`) option is most often used solely for its side-effect of making elimination of a non-existent path a non-error. I also don't like that `-f` also fixes permission errors to allow allow removing files. If we decide that feature is needed it should be added under a distinct option (e.g. `&fix-perms`). Related: elves#1659
I also feel this command shouldn't live in |
I mostly agree with your feedback, @xiaq. I need to think about whether a new |
Because the Go
It is not clear that is the preferable behavior to expose since it elides (hides) some errors. My implementation exposes all errors. I also haven't tested the |
The main problem with using I am going to close this P.R. since the implementation is moving from the |
I considered adhering more closely to the traditional Unix
rm
andrmdir
commands. For example, by implementing each independently and supporting the--force
option. However, I concluded there are insufficient reasons to do so. In particular, the POSIX--force
(or-f
) option is most often used solely for its side-effect of making elimination of a non-existent path a non-error. I also don't like that-f
also fixes permission errors to allow allow removing files. If we decide that feature is needed it should be added under a distinct option (e.g.&fix-perms
).Related: #1659