jprichardson / jprichardson/node-fs-extra
feature request: fs.softDelete or the like?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 9.6k
- Forks
- 788
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 3
Description
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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reviewing fs-extra's existing unlink/remove entry points and the Windows and macOS safe-delete APIs described in the issue; decide the API name and supported behavior, then add coverage showing files reach the platform trash instead of being permanently unlinked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100