mirror of
https://github.com/uutils/coreutils
synced 2024-12-15 07:42:48 +00:00
ls: use show_dir_name to output dir name
This commit is contained in:
parent
4442b35370
commit
3dab2b7390
1 changed files with 2 additions and 1 deletions
|
@ -1961,7 +1961,8 @@ pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> {
|
||||||
if config.dired {
|
if config.dired {
|
||||||
dired::indent(&mut out)?;
|
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 {
|
if config.dired {
|
||||||
// First directory displayed
|
// First directory displayed
|
||||||
let dir_len = path_data.display_name.len();
|
let dir_len = path_data.display_name.len();
|
||||||
|
|
Loading…
Reference in a new issue