mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
rmdir: use is_empty()
This commit is contained in:
parent
0d56792c58
commit
426cce7df0
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ fn remove(mut path: &Path, opts: Opts) -> Result<(), Error<'_>> {
|
||||||
if opts.parents {
|
if opts.parents {
|
||||||
while let Some(new) = path.parent() {
|
while let Some(new) = path.parent() {
|
||||||
path = new;
|
path = new;
|
||||||
if path.as_os_str() == "" {
|
if path.as_os_str().is_empty() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
remove_single(path, opts)?;
|
remove_single(path, opts)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue