[GH-ISSUE #44] Fix extra line that can occur on small outputs. #19

Closed
opened 2026-06-08 11:25:19 +03:00 by zhus · 1 comment
Owner

Originally created by @bootandy on GitHub (Dec 14, 2019).
Original GitHub issue: https://github.com/bootandy/dust/issues/44

Sometimes the output can look like this:

4.0K ─┬ 
 8.0K ─┬ .
 8.0K  └─┬ many
 4.0K    ├── hello_file
   0B    └── a_file

Instead of:

 8.0K ─┬ .
 8.0K  └─┬ many
 4.0K    ├── hello_file
   0B    └── a_file

This seems to be down to a call to: e.path().ancestors() in utils/mod.rs which can return '/' as an ancestor.

Investigating.

Originally created by @bootandy on GitHub (Dec 14, 2019). Original GitHub issue: https://github.com/bootandy/dust/issues/44 Sometimes the output can look like this: ``` 4.0K ─┬ 8.0K ─┬ . 8.0K └─┬ many 4.0K ├── hello_file 0B └── a_file ``` Instead of: ``` 8.0K ─┬ . 8.0K └─┬ many 4.0K ├── hello_file 0B └── a_file ``` This seems to be down to a call to: e.path().ancestors() in utils/mod.rs which can return '/' as an ancestor. Investigating.
zhus closed this issue 2026-06-08 11:25:19 +03:00
Author
Owner

@bootandy commented on GitHub (Dec 14, 2019):

Probably down to this:
https://github.com/jessegrosjean/jwalk/issues/13

<!-- gh-comment-id:565712514 --> @bootandy commented on GitHub (Dec 14, 2019): Probably down to this: https://github.com/jessegrosjean/jwalk/issues/13
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#19