Skip to content

Commit

Permalink
Merge pull request #5634 from cakebaker/ls_use_show_dir_name
Browse files Browse the repository at this point in the history
ls: use show_dir_name to output dir name
  • Loading branch information
tertsdiepraam authored Dec 11, 2023
2 parents 3dad5d4 + 3dab2b7 commit 181cfc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uu/ls/src/ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@ pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> {
if config.dired {
dired::indent(&mut out)?;
}
writeln!(out, "{}:", path_data.p_buf.display())?;
show_dir_name(&path_data.p_buf, &mut out);
writeln!(out)?;
if config.dired {
// First directory displayed
let dir_len = path_data.display_name.len();
Expand Down

0 comments on commit 181cfc8

Please sign in to comment.