mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
rmdir: use is_empty()
This commit is contained in:
@@ -100,7 +100,7 @@ fn remove(mut path: &Path, opts: Opts) -> Result<(), Error<'_>> {
|
||||
if opts.parents {
|
||||
while let Some(new) = path.parent() {
|
||||
path = new;
|
||||
if path.as_os_str() == "" {
|
||||
if path.as_os_str().is_empty() {
|
||||
break;
|
||||
}
|
||||
remove_single(path, opts)?;
|
||||
|
||||
Reference in New Issue
Block a user