mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
parent
a2d5dc4995
commit
0c06b98c2d
1 changed files with 6 additions and 3 deletions
9
du/du.rs
9
du/du.rs
|
@ -349,11 +349,14 @@ Try '{program} --help' for more information.", s, program = program);
|
||||||
let time_spec = Timespec::new(secs, nsecs);
|
let time_spec = Timespec::new(secs, nsecs);
|
||||||
time::at(time_spec).strftime(time_format_str)
|
time::at(time_spec).strftime(time_format_str)
|
||||||
};
|
};
|
||||||
print!("{:<10} {:<30} {}", convert_size(size), time_str, stat.path.display());
|
if !summarize || (summarize && index == len-1) {
|
||||||
|
print!("{:<10} {:<30} {}{}", convert_size(size), time_str, stat.path.display(), line_separator);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
print!("{:<10} {}", convert_size(size), stat.path.display());
|
if !summarize || (summarize && index == len-1) {
|
||||||
|
print!("{:<10} {}{}", convert_size(size), stat.path.display(), line_separator);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print!("{}", line_separator);
|
|
||||||
if options_arc.total && index == (len - 1) {
|
if options_arc.total && index == (len - 1) {
|
||||||
// The last element will be the total size of the the path under
|
// The last element will be the total size of the the path under
|
||||||
// path_str. We add it to the grand total.
|
// path_str. We add it to the grand total.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue