mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #5634 from cakebaker/ls_use_show_dir_name
ls: use show_dir_name to output dir name
This commit is contained in:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user