Crates.io | rm-rs |
lib.rs | rm-rs |
version | 0.2.3 |
source | src |
created_at | 2024-04-07 15:08:42.766477 |
updated_at | 2024-06-03 10:13:49.345024 |
description | A cross-platform alternative to `rm` |
homepage | |
repository | https://github.com/niss36/rm-rs |
max_upload_size | |
id | 1199235 |
size | 70,135 |
A cross-platform alternative to rm
, written in Rust for native performance.
npm install --save-dev rm-rs
# OR
npx rm-rs
pnpm install --save-dev rm-rs
# OR
pnpm dlx rm-rs
cargo install rm-rs
# Delete some files
rm-rs file1 file2 ...
# Delete an empty directory
rm-rs -d directory
# Delete a directory and all its children
rm-rs -r directory
# Delete a file, no errors if it doesn't exist
rm-rs -f file
$ rm-rs --help
Usage: rm-rs [OPTIONS] <FILES>...
Arguments:
<FILES>...
Options:
-d Attempt to remove directories as well as other types of files
-r Recursively remove directories and the files they contain. This implies the -d option
-f Ignore "file not found" errors
-h, --help Print help