#remove #safe #safe-remove

bin+lib safe-remove

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

3 releases

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

#1414 in Command line utilities

Download history 269/week @ 2025-01-15 24/week @ 2025-01-22 11/week @ 2025-02-05 11/week @ 2025-02-12

79 downloads per month

MIT license

22KB
524 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
~197K SLoC