An open API service indexing awesome lists of open source software.

https://github.com/doughtnerd/safe-remove

rm-like cli tool that saves deleted files. Built in Rust
https://github.com/doughtnerd/safe-remove

Last synced: about 1 year ago
JSON representation

rm-like cli tool that saves deleted files. Built in Rust

Awesome Lists containing this project

README

          

# Safe Remove

## Description
CLI tool similar to linux/ubuntu native `rm` command but backs up the files that are removed. These files can then be restored to their old location.

## Example Usage

### Remove files
```bash
safe-remove remove test.ts ./**/junkfile.txt
```

### Restore files
```bash
safe-remove restore test.ts nested/dir/junkfile.txt
```

## Why?
I wrote this to get a better feel for coding in Rust and figured this would be a fairly straightforward app.
I'm well aware you could easily use some subset of other commands or tools (mv, cp then rm, etc) to accomplish the same thing.

## Notes
The tool is not complete and bound to be a little buggy, I'll be working to correct bugs and make the tool a little better as I get more used to doing things in Rust.