Bug 504844

Summary: DirectorySizeJob always returns a size of zero on Windows
Product: [Frameworks and Libraries] frameworks-kio Reporter: Jean-Baptiste Mardelle <jb>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kdelibs-bugs-null, nate, nicolas.fella
Priority: NOR    
Version First Reported In: 6.14.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jean-Baptiste Mardelle 2025-05-27 07:34:34 UTC
KIO::DirectorySizeJob always returns 0 on Windows.


STEPS TO REPRODUCE

KIO::DirectorySizeJob *job = KIO::directorySize(path);
connect(job, &KJob::result, this, [job]() {
           qDebug()<<"GOT FOLDER SIZE: "<<job->totalSize();
            job->deleteLater();
});

While this works correctly on Linux, it always returns 0 on Windows.


OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION