Fix the wrong detection call

This commit is contained in:
Don Ho 2024-10-10 18:43:42 +02:00
parent 1445487bb7
commit fdb68db3d6

View File

@ -1019,7 +1019,7 @@ bool FileManager::backupCurrentBuffer()
backupFilePath += L"\\backup\\"; backupFilePath += L"\\backup\\";
// if "backup" folder doesn't exist, create it. // if "backup" folder doesn't exist, create it.
if (!doesFileExist(backupFilePath.c_str())) if (!doesDirectoryExist(backupFilePath.c_str()))
{ {
::CreateDirectory(backupFilePath.c_str(), NULL); ::CreateDirectory(backupFilePath.c_str(), NULL);
} }