Bug 504844 - DirectorySizeJob always returns a size of zero on Windows
Summary: DirectorySizeJob always returns a size of zero on Windows
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.14.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-27 07:34 UTC by Jean-Baptiste Mardelle
Modified: 2025-05-28 09:07 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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