diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index 4effd22ee..48ac7a051 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -1019,7 +1019,7 @@ bool FileManager::backupCurrentBuffer() backupFilePath += L"\\backup\\"; // if "backup" folder doesn't exist, create it. - if (!doesFileExist(backupFilePath.c_str())) + if (!doesDirectoryExist(backupFilePath.c_str())) { ::CreateDirectory(backupFilePath.c_str(), NULL); }