mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #282] Count hard links only once between multiple directories on the command-line? #126
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 @cr1901 on GitHub (Dec 14, 2022).
Original GitHub issue: https://github.com/bootandy/dust/issues/282
Consider the following two commands, where
backups/foo/bazandbackups/bar/bazhave some files in them w/ the same inode (i.e multiple hard links):The
-coption ofducumulatively prints the total disk usage for all input arguments (files or directories). This is useful for figuring out cumulative disk usage of similar trees that aren't in the same subdirectory. The-coption toduis hard-link aware.dustdoesn't seem to need a-coption to give the same information. However, it appears thatdustcounts files with the same inode more than once if given multiple directories on the command line (hence the difference in size in my example). Is there a way to makedusthard-link aware between multiple directories/files provided as input arguments?(Additionally, should a
-dof0, still print out at least the top-level directory size for each input argument as well as a total?)Version
@bootandy commented on GitHub (Jan 4, 2023):
Well found. That counts as a bug. I'll look at fixing it.
Yes I think it should, I never thought about that. I'll add it to the todo-list
@cr1901 commented on GitHub (Jan 8, 2023):
Excellent, tyvm for your good work! It seems to work for my immediate use case. There are more things I'd like to add to
dustand/or discuss adding, but I'm trying to remove projects from my stack right now.So any bugs I want to file/PRs I want to make will have to wait for now :(...