From fdb68db3d67dc5146f50140395a981ef16b647f0 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Thu, 10 Oct 2024 18:43:42 +0200 Subject: [PATCH] Fix the wrong detection call --- PowerEditor/src/ScintillaComponent/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }