[sword-svn] r3819 - trunk/src/mgr
scribe at crosswire.org
scribe at crosswire.org
Sat Oct 24 16:23:11 EDT 2020
Author: scribe
Date: 2020-10-24 16:23:11 -0400 (Sat, 24 Oct 2020)
New Revision: 3819
Modified:
trunk/src/mgr/filemgr.cpp
Log:
added optimization to skip file size lookup when possible in Windows code
Modified: trunk/src/mgr/filemgr.cpp
===================================================================
--- trunk/src/mgr/filemgr.cpp 2020-10-19 13:41:05 UTC (rev 3818)
+++ trunk/src/mgr/filemgr.cpp 2020-10-24 20:23:11 UTC (rev 3819)
@@ -411,7 +411,7 @@
struct DirEntry i;
i.name = dirEntName;
i.isDirectory = fileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
- i.size = FileMgr::getFileSize(basePath + i.name);
+ if (!i.isDirectory && includeSize) i.size = FileMgr::getFileSize(basePath + i.name);
dirList.push_back(i);
}
} while (FindNextFileW(findIterator, &fileData) != 0);
More information about the sword-cvs
mailing list