mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #346] Feature request: disk on all local disks #158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stepancheg on GitHub (Nov 15, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/346
There can be multiple local disks (or partitions of the disk like APFS volumes).
Would be convenient if dust had a flag like
dust --all-local-disksto get output combined from all of them.Currently the second best option is something like
@bootandy commented on GitHub (Nov 16, 2023):
it's an interesting idea. I'm not sure how I would detect which file-systems should be included in 'all-local-disks' though.
@stepancheg commented on GitHub (Nov 16, 2023):
I'm not sure how it can be done cross-platform. Perhaps some per-OS logic can be implemented. For macOS it can be this.
For macOS I guess the algorithm is this:
diskutil listto find all real disks (excluding images) and partitions on themmountto find the mount roots for these local disksFor Linux it might be more complicated because ecosystem is much larger.
@bootandy commented on GitHub (Jan 10, 2024):
I'm going to close this I'm not sure how I can do this.
@stepancheg commented on GitHub (Jan 10, 2024):
Not sure can be done universally, but for macos I have shown the command.
Anyway, thank you for the great tool!