Use already calculated file size, and cache for later use.

This commit is contained in:
Stephen Anthony 2022-11-11 20:26:14 -03:30
parent 4f39859c49
commit 5748de3833
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ void FSNodeWINDOWS::addFile(AbstractFSList& list, ListMode mode,
if (entry._isDirectory) if (entry._isDirectory)
entry._path += FSNode::PATH_SEPARATOR; entry._path += FSNode::PATH_SEPARATOR;
entry._isPseudoRoot = false; entry._isPseudoRoot = false;
entry._size = find_data.nFileSizeHigh * (static_cast<size_t>(MAXDWORD) + 1) + find_data.nFileSizeLow;
list.emplace_back(make_shared<FSNodeWINDOWS>(entry)); list.emplace_back(make_shared<FSNodeWINDOWS>(entry));
} }