Only create if directory is not found
This commit is contained in:
@@ -397,8 +397,11 @@ private:
|
|||||||
subCachePath.resize(MAX_PATH + 1);
|
subCachePath.resize(MAX_PATH + 1);
|
||||||
::PathAppend(&subCachePath[0], dir.c_str());
|
::PathAppend(&subCachePath[0], dir.c_str());
|
||||||
subCachePath = subCachePath.c_str();
|
subCachePath = subCachePath.c_str();
|
||||||
|
if (!::PathIsDirectory(subCachePath.c_str()))
|
||||||
|
{
|
||||||
::CreateDirectory(subCachePath.c_str(), nullptr);
|
::CreateDirectory(subCachePath.c_str(), nullptr);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
auto fileList = siaFileTree->Query(siaQuery);
|
auto fileList = siaFileTree->Query(siaQuery);
|
||||||
for (auto& file : fileList)
|
for (auto& file : fileList)
|
||||||
@@ -539,6 +542,7 @@ private:
|
|||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(DokanFileInfo);
|
UNREFERENCED_PARAMETER(DokanFileInfo);
|
||||||
|
|
||||||
|
// TODO Implement this correctly
|
||||||
*FreeBytesAvailable = (ULONGLONG)(512 * 1024 * 1024);
|
*FreeBytesAvailable = (ULONGLONG)(512 * 1024 * 1024);
|
||||||
*TotalNumberOfBytes = 9223372036854775807;
|
*TotalNumberOfBytes = 9223372036854775807;
|
||||||
*TotalNumberOfFreeBytes = 9223372036854775807;
|
*TotalNumberOfFreeBytes = 9223372036854775807;
|
||||||
|
Reference in New Issue
Block a user