Skip to content

removeSync() does not error if file to remove exists, but is not writable. #902

Closed
@rhwood

Description

@rhwood
  • Operating System:
    • macOS 11.3.1
    • Ubuntu 16.04.6 LTS
  • Node.js version:
    • 16.1.0
    • 16.0.0
    • 14.16.1
  • fs-extra version:
    • 10.0.0

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions