-
Notifications
You must be signed in to change notification settings - Fork 774
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
removeSync() does not error if file to remove exists, but is not writable. #902
Comments
How does |
I don't know. I may be doing something wrong. On macOS 11.3.1 with Node.js 16.1.0,
but this does not (note same as above except after
|
For clarity, what's the result of that code? |
which means (I just realized) the |
I just submitted nodejs/node#38683 as Node does have this bug also. |
Closing as |
fs-extra
version:Starting with fs-extra 10.0.0 on node 14.14+, failures to rm a file that exists, but is in an unwritable directory, fail silently. fs-extra 9.1.0 throws an error, and fs-extra on node 12 throw an error.
Note that fs.rm in node 14.14+ is documented to fail silently only if the
force
parameter is true and the file to delete does not exist.The text was updated successfully, but these errors were encountered: