0.2.3 • Published 2 years ago
rm-rs v0.2.3
rm-rs
A cross-platform alternative to rm, written in Rust for native performance.
Installation
With npm
npm install --save-dev rm-rs
# OR
npx rm-rsWith pnpm
pnpm install --save-dev rm-rs
# OR
pnpm dlx rm-rsWith cargo
cargo install rm-rsUsage examples
# 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 fileHelp
$ 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