fixed issue with disk usage of hidden items not counted

This commit is contained in:
okrc 2022-11-28 21:20:37 +08:00
parent 9272a077cd
commit fffcdb91e1
No known key found for this signature in database
GPG Key ID: 7BFFDD3B3BF40F01
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;
}
}