Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tin-summer does not count the size of directories #24

Open
sharkdp opened this issue Oct 19, 2019 · 0 comments
Open

tin-summer does not count the size of directories #24

sharkdp opened this issue Oct 19, 2019 · 0 comments

Comments

@sharkdp
Copy link

sharkdp commented Oct 19, 2019

How to reproduce:

Run this in an empty directory:

for i in {1..1000}; do mkdir $i; done
echo -n "test" > 123/file

If we now use du to report the "disk usage" and the "apparent size" of that directory, we get:

▶ du -s -B1
4096	.

▶ du -s -B1 --apparent-size
60064	.

However, sn only reports the 4 bytes from the 123/file:

▶ sn files -d0
4    b	 .

▶ sn parallel -d0
4    b	 .
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

No branches or pull requests

1 participant