[GH-ISSUE #262] Add flag to only display directories #110

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

Originally created by @jrwrigh on GitHub (Sep 5, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/262

The description of the command inclines that only directories will be displayed, but on a machine I'm using it with it displays files as well:

3.9T   ├─┴ jrwrigh                                    │                                                 █████ │   8%
  0B   │ ┌── 2085581.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085623.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085643.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085738.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085756.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085763.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085764.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085773.output                           │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085793.error                            │                                             ░░░░░░░░█ │   0%
  0B   │ ├── 2085793.output                           │                                             ░░░░░░░░█ │   0%
4.0K   │ ├── 2085581.cobaltlog                        │                                             ░░░░░░░░█ │   0%
4.0K   │ ├── 2085581.error                            │                                             ░░░░░░░░█ │   0%

I'd like to not display any files, only directories and sub directories. For my particular use-case, I can get something close using --min-size 1G since I'm looking for large directories, but it's still catching large tar balls.

Originally created by @jrwrigh on GitHub (Sep 5, 2022). Original GitHub issue: https://github.com/bootandy/dust/issues/262 The description of the command inclines that only directories will be displayed, but on a machine I'm using it with it displays files as well: ``` 3.9T ├─┴ jrwrigh │ █████ │ 8% 0B │ ┌── 2085581.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085623.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085643.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085738.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085756.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085763.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085764.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085773.output │ ░░░░░░░░█ │ 0% 0B │ ├── 2085793.error │ ░░░░░░░░█ │ 0% 0B │ ├── 2085793.output │ ░░░░░░░░█ │ 0% 4.0K │ ├── 2085581.cobaltlog │ ░░░░░░░░█ │ 0% 4.0K │ ├── 2085581.error │ ░░░░░░░░█ │ 0% ``` I'd like to not display any files, only directories and sub directories. For my particular use-case, I can get something close using `--min-size 1G` since I'm looking for large directories, but it's still catching large tar balls.
zhus closed this issue 2026-06-08 11:25:43 +03:00
Author
Owner

@bootandy commented on GitHub (Sep 5, 2022):

There is no flag to do this currently, it should be simple to add one. Consider this added to the todo list.

<!-- gh-comment-id:1236630649 --> @bootandy commented on GitHub (Sep 5, 2022): There is no flag to do this currently, it should be simple to add one. Consider this added to the todo list.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#110