Skip to content

feature request: fs.softDelete or the like? #686

@Pomax

Description

@Pomax

Both Windows and MacOS has "safe" delete APIs for moving things to, respectively, the Recycle Bin and the Trash, from where files can be undeleted again - it would be super nice if fs-extra had a way to unlink files in a way that made them end up in those locations, rather than outright unlinking.

And I honestly have no idea what a good name for that would be, softDelete is kind of weird, maybe safeUnlink? trash? (there is a trash package already named that, so... maybe that? Though I couldn't get it to actually delete files to the recycle bin on the machine I tested it on)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions