[GH-ISSUE #144] -L / --dereference to follow symlinks #65

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

Originally created by @RagnarGrootKoerkamp on GitHub (May 19, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/144

du has the -L or --dereference flag to follow symlinks to files and directories and include their actual size.

It would be great if dust could also support this.

So instead of reporting 0B per symlink, with -L it would report the file size, or for directories the total size of files in that directory.

Originally created by @RagnarGrootKoerkamp on GitHub (May 19, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/144 `du` has the `-L` or `--dereference` flag to follow symlinks to files and directories and include their actual size. It would be great if `dust` could also support this. So instead of reporting `0B` per symlink, with `-L` it would report the file size, or for directories the total size of files in that directory.
zhus closed this issue 2026-06-08 11:25:31 +03:00
Author
Owner

@bootandy commented on GitHub (Jun 8, 2021):

I deliberately didn't do that. I think that would be weird from a hierarchy point of view. The link isn't 'in' the directory so if you delete it you won't free up the space associated with it. Also how would the sum total space work - would that include the directories inside a sym link, what if it was recursive?

<!-- gh-comment-id:856579950 --> @bootandy commented on GitHub (Jun 8, 2021): I deliberately didn't do that. I think that would be weird from a hierarchy point of view. The link isn't 'in' the directory so if you delete it you won't free up the space associated with it. Also how would the sum total space work - would that include the directories inside a sym link, what if it was recursive?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#65