diff --git a/src/builtins/ls.rs b/src/builtins/ls.rs index 0f0dac8..6f9e258 100644 --- a/src/builtins/ls.rs +++ b/src/builtins/ls.rs @@ -29,6 +29,7 @@ impl Builtin for Ls { continue; } }; + let file_name = entry.file_name().to_string_lossy().to_string(); let mut file_type = "unknown"; if metadata.file_type().is_dir() {