diff --git a/SiaDrive.Dokan.Api/SiaDokanDrive.cpp b/SiaDrive.Dokan.Api/SiaDokanDrive.cpp index 0563ed9..b60d6ab 100644 --- a/SiaDrive.Dokan.Api/SiaDokanDrive.cpp +++ b/SiaDrive.Dokan.Api/SiaDokanDrive.cpp @@ -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;