Merge pull request #2503 from okrc/patch-2
fixed issue with disk usage of hidden items not counted
This commit is contained in:
commit
50c5d79022
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue