MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getDirectorySize

Function getDirectorySize

launcher/ui/pages/instance/StoragePage.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "ui_StoragePage.h"
24
25qint64 getDirectorySize(QString path)
26{
27 QDirIterator it(path, QDirIterator::Subdirectories);
28 qint64 fileSizeTotal = 0;
29 while (it.hasNext()) {
30 it.next();
31 fileSizeTotal += it.fileInfo().size();
32 }
33 return fileSizeTotal;
34}
35
36void clearDirectoryInner(QString path)
37{

Callers 1

updateCalculationsMethod · 0.85

Calls 2

nextMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected