Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jmattaa
Copy link
Owner

@jmattaa jmattaa commented May 27, 2025

Add the --directory-size/-s flag.

Using this flag will tell the program to calculate the size of each directory, by recursively opening the directory and checking all the sizes inside.
This wont' return the logical size, like files are shown (calculating the bytes), rather the directories will show the physical disk usage size, counting the blocks.

jmattaa added 4 commits May 27, 2025 18:05
change the calculation of directory sizes to be the actuall physical
size (like `du -sh` does) instead of it being the logical size. I think
that's more intuitive :)
@jmattaa jmattaa linked an issue May 27, 2025 that may be closed by this pull request
@jmattaa jmattaa merged commit 4e1ce01 into main May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Add option to display folder size (like du -sh)

2 participants