From 25c882b4bde526bfef4a9312c55b0fa981876439 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 11 Nov 2022 20:26:14 -0330 Subject: [PATCH] Use already calculated file size, and cache for later use. --- src/os/windows/FSNodeWINDOWS.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/windows/FSNodeWINDOWS.cxx b/src/os/windows/FSNodeWINDOWS.cxx index 2a544917f..ef251da01 100644 --- a/src/os/windows/FSNodeWINDOWS.cxx +++ b/src/os/windows/FSNodeWINDOWS.cxx @@ -184,6 +184,7 @@ void FSNodeWINDOWS::addFile(AbstractFSList& list, ListMode mode, if (entry._isDirectory) entry._path += FSNode::PATH_SEPARATOR; entry._isPseudoRoot = false; + entry._size = find_data.nFileSizeHigh * (static_cast(MAXDWORD) + 1) + find_data.nFileSizeLow; list.emplace_back(make_shared(entry)); }