Merge pull request #2503 from okrc/patch-2

fixed issue with disk usage of hidden items not counted
This commit is contained in:
DavidXanatos 2022-11-29 18:29:43 +01:00 committed by GitHub
commit 50c5d79022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ quint64 CBoxMonitor::CounDirSize(const QString& Directory, SBox* Box)
return TotalSize;
QDir Dir(Directory);
foreach(const QFileInfo & Info, Dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot))
foreach(const QFileInfo & Info, Dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::Hidden | QDir::NoDotAndDotDot))
{
if (Info.isDir())
TotalSize += CounDirSize(Info.filePath(), Box);
@ -186,4 +186,4 @@ void CBoxMonitor::Stop()
}
m_bTerminate = false;
}
}