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

Show incorrect size for files stored on cloud with link on local disk #225

Open
bboysnick5 opened this issue Mar 1, 2023 · 7 comments
Open

Comments

@bboysnick5
Copy link

It shows the actual file size for files stored on cloud but not the actual size used on local disk which is very small as it's just a link/meta.

@KSXGitHub
Copy link
Owner

files stored on cloud

What cloud? On what OS? How would du behave?

@KSXGitHub
Copy link
Owner

Just to make sure you are not confusing this tool to some other tool that also named pdu, your pdu prints an ascii graph, right?

@bboysnick5
Copy link
Author

bboysnick5 commented Mar 5, 2023

Mac 13.2.1, intel skylake. I patched with opencore to have it support ventura. Not sure if it's related.

Du and dust behaves correctly. Yes pdu prints correctly. But it showed I have 300+GBs on mac under home dir versus actually 220gb with dust.

@KSXGitHub
Copy link
Owner

But it showed I have 300+GBs on mac under home dir versus actually 220gb with dust.

Can you add --bytes-format=binary and tell me the result?

@bboysnick5
Copy link
Author

same.

@KSXGitHub
Copy link
Owner

Unfortunately, I don't have a Mac, so I can't reproduce this bug.

I suspect that you have some hardlinks in your directory, which I explicitly decided not to handle.

@KSXGitHub
Copy link
Owner

@bboysnick5 Version 0.9.0 has been released. Can you check if the bug has been fixed?

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

2 participants