1
0

Only create if directory is not found

This commit is contained in:
Scott E. Graves
2017-03-13 19:12:13 -05:00
parent 7435a61226
commit e838f6595e

View File

@@ -397,8 +397,11 @@ private:
subCachePath.resize(MAX_PATH + 1);
::PathAppend(&subCachePath[0], dir.c_str());
subCachePath = subCachePath.c_str();
if (!::PathIsDirectory(subCachePath.c_str()))
{
::CreateDirectory(subCachePath.c_str(), nullptr);
}
}
auto fileList = siaFileTree->Query(siaQuery);
for (auto& file : fileList)
@@ -539,6 +542,7 @@ private:
{
UNREFERENCED_PARAMETER(DokanFileInfo);
// TODO Implement this correctly
*FreeBytesAvailable = (ULONGLONG)(512 * 1024 * 1024);
*TotalNumberOfBytes = 9223372036854775807;
*TotalNumberOfFreeBytes = 9223372036854775807;