parallel-disk-usage icon indicating copy to clipboard operation
parallel-disk-usage copied to clipboard

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

Open bboysnick5 opened this issue 2 years ago • 7 comments

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.

bboysnick5 avatar Mar 01 '23 08:03 bboysnick5

files stored on cloud

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

KSXGitHub avatar Mar 01 '23 09:03 KSXGitHub

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?

KSXGitHub avatar Mar 01 '23 09:03 KSXGitHub

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.

bboysnick5 avatar Mar 05 '23 06:03 bboysnick5

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?

KSXGitHub avatar Mar 05 '23 07:03 KSXGitHub

same.

bboysnick5 avatar Mar 05 '23 08:03 bboysnick5

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 avatar Mar 05 '23 09:03 KSXGitHub

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

KSXGitHub avatar Mar 10 '23 06:03 KSXGitHub