mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Show directory size
This commit is contained in:
parent
6feaecafe2
commit
e68e8ad8a5
1 changed files with 2 additions and 5 deletions
|
@ -2417,11 +2417,8 @@ static void printent_long(const struct entry *ent, int sel, uint namecols)
|
|||
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
|
||||
break;
|
||||
case S_IFDIR:
|
||||
if (cfg.blkorder)
|
||||
printw("%c%-16.16s %s %8.8s/ %s/\n",
|
||||
cp, timebuf, permbuf, coolsize(ent->blocks << BLK_SHIFT), pname);
|
||||
else
|
||||
printw("%c%-16.16s %s / %s/\n", cp, timebuf, permbuf, pname);
|
||||
printw("%c%-16.16s %s %8.8s %s/\n", cp, timebuf, permbuf,
|
||||
coolsize(cfg.blkorder ? ent->blocks << BLK_SHIFT : ent->size), pname);
|
||||
break;
|
||||
case S_IFLNK:
|
||||
printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);
|
||||
|
|
Loading…
Add table
Reference in a new issue