diff --git a/src/shell/filesystem_shell.rs b/src/shell/filesystem_shell.rs index 5b62d329a..c2bd9e5b9 100644 --- a/src/shell/filesystem_shell.rs +++ b/src/shell/filesystem_shell.rs @@ -106,8 +106,7 @@ impl Shell for FilesystemShell { if entries.len() == 1 { if let Ok(entry) = &entries[0] { if entry.is_dir() { - let entries = std::fs::read_dir(&full_path); - + let entries = std::fs::read_dir(&entry); let entries = match entries { Err(e) => { if let Some(s) = args.nth(0) { @@ -126,6 +125,7 @@ impl Shell for FilesystemShell { } Ok(o) => o, }; + for entry in entries { let entry = entry?; let filepath = entry.path();