Sysinternals Disk Usage (DU) missreports directory sizes

NST 0 Reputation points
2023-09-17T20:27:01.3166667+00:00

BUG REPORT:

It seems that du doesn't report the correct size of directories.

Example: The size of C:\Users\public is 741 MB on my machine. DU disagrees:

C:\Users>du public
DU v1.62 - Directory disk usage reporter
Copyright (C) 2005-2018 Mark Russinovich
Sysinternals - www.sysinternals.com
Files:        757
Directories:  227
Size:         741 bytes
Size on disk: 744 bytes

It seems like somewhere the information that the 741 is in units of MB is getting lost.

When running in CSV mode, the information is still there:

C:\Users>du -c public

DU v1.62 - Directory disk usage reporter
Copyright (C) 2005-2018 Mark Russinovich
Sysinternals - www.sysinternals.com

Path,CurrentFileCount,CurrentFileSize,FileCount,DirectoryCount,DirectorySize,DirectorySizeOnDisk
"C:\Users\public",1,174,757,227,741024814,744308736

This could maybe be related to German localization, because of different separating and grouping symbols for large numbers.

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,151 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.