3 ms·
Subdirectories cannot be larger than the directory that they are within, so they cannot be sorted _below_ their parent. Thus, the tree branches upwards, not dow
by db48x 2y ago
Subdirectories cannot be larger than the directory that they are within, so they cannot be sorted _below_ their parent. Thus, the tree branches upwards, not downwards. The root is at the bottom, where a tree’s root should be!
Incidentally, dust sorts things the same way but presents it with a nicer tree:
db48x ~ 1 dust -Db
2.6G ┌── saves
2.6G ┌─┴ .factorio
3.4G │ ┌── Steam
3.4G │ ┌─┴ share
3.4G ├─┴ .local
1.8G │ ┌── EgoSoft
3.5G ├─┴ .config
7.2G │ ┌── Amadeus (1984) DC (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)
16G │ ├── Amadeus.1984.DC.INTERNAL.REPACK.1080p.BluRay.x264-CLASSiC[rarbg]
23G ├─┴ video
1.9G │ ┌── build
2.0G │ ┌─┴ notcurses
2.2G │ ├── wezterm
2.1G │ │ ┌── master
2.6G │ │ │ ┌── tiles
2.6G │ │ │ ┌─┴ obj
4.1G │ │ ├─┴ missions
2.6G │ │ │ ┌── tiles
2.6G │ │ │ ┌─┴ obj
4.1G │ │ ├─┴ iteminfo
5.6G │ │ ├── follower_rules
8.5G │ │ │ ┌── pack
8.6G │ │ │ ┌─┴ objects
8.6G │ │ │ ┌─┴ .git
10G │ │ ├─┴ uilist
26G │ ├─┴ cataclysm
33G ├─┴ src
72G ┌─┴ .
- imiric 2y agoGotcha, thanks for explaining. Yeah, I guess my confusion was with how the tree is rendered in dut. The pipe rendering of dust makes this clearer.