[GH-ISSUE #345] filecount does not works as expected #157

Closed
opened 2026-06-08 11:25:55 +03:00 by zhus · 2 comments
Owner

Originally created by @tatref on GitHub (Nov 13, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/345

It seems like it accounts only for files

[tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ mkdir -p test/{a,b,c,d}

[tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ ./dust test/

0B   ┌── a │                                                                                                                █ │   0%

0B   ├── b │                                                                                                                █ │   0%

0B   ├── c │                                                                                                                █ │   0%

0B   ├── d │                                                                                                                █ │   0%

0B ┌─┴ test│                                                                                                                █ │   0%

[tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ ./dust -f test/

0   ┌── a │                                                                                                                 █ │   0%

0   ├── b │                                                                                                                 █ │   0%

0   ├── c │                                                                                                                 █ │   0%

0   ├── d │                                                                                                                 █ │   0%

0 ┌─┴ test│                                                                                                                 █ │   0%

If I create files, the behavior is correct.

Maybe the count should include directories, or just fix the doc?

    -f, --filecount

            Directory 'size' is number of child files/dirs not disk size
Originally created by @tatref on GitHub (Nov 13, 2023). Original GitHub issue: https://github.com/bootandy/dust/issues/345 It seems like it accounts only for files ``` [tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ mkdir -p test/{a,b,c,d} [tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ ./dust test/ 0B ┌── a │ █ │ 0% 0B ├── b │ █ │ 0% 0B ├── c │ █ │ 0% 0B ├── d │ █ │ 0% 0B ┌─┴ test│ █ │ 0% [tatref@oel9 dust-v0.8.6-x86_64-unknown-linux-musl]$ ./dust -f test/ 0 ┌── a │ █ │ 0% 0 ├── b │ █ │ 0% 0 ├── c │ █ │ 0% 0 ├── d │ █ │ 0% 0 ┌─┴ test│ █ │ 0% ``` If I create files, the behavior is correct. Maybe the count should include directories, or just fix the doc? ``` -f, --filecount Directory 'size' is number of child files/dirs not disk size ```
zhus closed this issue 2026-06-08 11:25:55 +03:00
Author
Owner

@bootandy commented on GitHub (Nov 16, 2023):

Good spot, I will fix the documentation.

<!-- gh-comment-id:1813444436 --> @bootandy commented on GitHub (Nov 16, 2023): Good spot, I will fix the documentation.
Author
Owner

@bootandy commented on GitHub (Nov 22, 2023):

https://github.com/bootandy/dust/pull/350

<!-- gh-comment-id:1821718644 --> @bootandy commented on GitHub (Nov 22, 2023): https://github.com/bootandy/dust/pull/350
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#157