#deleting #safe #remove #directory #deleted #command #srm

bin+lib safe-remove

Safe Remove (srm): Move files to a safe location instead of deleting them immediately

3 releases

new 0.1.2 Jan 21, 2025
0.1.1 Jan 19, 2025
0.1.0 Jan 19, 2025

#3 in #deleted

Download history 110/week @ 2025-01-14

110 downloads per month

MIT license

19KB
462 lines

SRM (Safely Remove)

[!CAUTION] I'm still working on this project, so it's not ready for use yet.

srm is a command-line program to delete files securely.

Motivation

The rm command is the most commonly used command to delete files in Unix-like operating systems. However, it's really easy to accidentally delete important files with it, and never be able to restore it.

srm is a safer alternative to rm that stores deleted files in a trash directory instead of deleting them permanently.

Roadmap

  • Basic functionality, like storing deleted files in a trash directory, restoring them, and deleting them permanently.
  • Implementing the -r option to delete directories recursively.
  • Daemon mode to monitor the trash directory and delete files permanently after a certain period of time.

Dependencies

~7–16MB
~199K SLoC