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