mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
show entry size/count after date
This commit is contained in:
parent
ddcb1b5744
commit
3936580c9a
1 changed files with 6 additions and 6 deletions
|
|
@ -186,9 +186,6 @@ impl Public {
|
|||
r.push({
|
||||
let mut l = format!("=> {}/", encode(&dir.name)); // link
|
||||
let mut a = Vec::new(); // alt
|
||||
if dc.alt.is_count {
|
||||
a.push(dir.count.to_string());
|
||||
}
|
||||
if dc.alt.time.is_accessed {
|
||||
a.push(self.t(dir.meta.atime()))
|
||||
}
|
||||
|
|
@ -198,6 +195,9 @@ impl Public {
|
|||
if dc.alt.time.is_modified {
|
||||
a.push(self.t(dir.meta.mtime()))
|
||||
}
|
||||
if dc.alt.is_count {
|
||||
a.push(dir.count.to_string());
|
||||
}
|
||||
// @TODO modified, accessed, created etc.
|
||||
if !a.is_empty() {
|
||||
l.push_str(&format!(" ({})", a.join(",")));
|
||||
|
|
@ -227,9 +227,6 @@ impl Public {
|
|||
r.push({
|
||||
let mut l = format!("=> {}", encode(&file.name)); // link
|
||||
let mut a = Vec::new(); // alt
|
||||
if fc.alt.is_size {
|
||||
a.push(b(file.meta.size()))
|
||||
}
|
||||
if fc.alt.time.is_accessed {
|
||||
a.push(self.t(file.meta.atime()))
|
||||
}
|
||||
|
|
@ -239,6 +236,9 @@ impl Public {
|
|||
if fc.alt.time.is_modified {
|
||||
a.push(self.t(file.meta.mtime()))
|
||||
}
|
||||
if fc.alt.is_size {
|
||||
a.push(b(file.meta.size()))
|
||||
}
|
||||
if !a.is_empty() {
|
||||
l.push_str(&format!(" ({})", a.join(",")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue