1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

rm: recursive implementation of -r option

Change the implementation of `rm -r` so that it is explicitly recursive
so that (1) there is one code path regardless of whether `--verbose` is
given and (2) it is easier to be compatible with GNU `rm`.

This change eliminates a dependency on the `walkdir` crate.

Fixes #7033, fixes #7305, fixes #7307.
This commit is contained in:
Jeffrey Finkelstein 2025-02-16 16:50:06 -05:00
parent efbc78b8ae
commit 1606968bf2
5 changed files with 191 additions and 78 deletions

1
Cargo.lock generated
View file

@ -3164,7 +3164,6 @@ dependencies = [
"clap",
"libc",
"uucore",
"walkdir",
"windows-sys 0.59.0",
]