OSDN Git Service

Fix issue #1438: Non existing backup directory should be automatically created
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 6 Aug 2022 00:20:22 +0000 (09:20 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 6 Aug 2022 00:20:22 +0000 (09:20 +0900)
Src/Merge.cpp

index afa0f0a..fe06cb1 100644 (file)
@@ -1015,6 +1015,8 @@ bool CMergeApp::CreateBackup(bool bFolder, const String& pszPath)
                                bakPath = std::move(path);
                        else
                                bakPath = paths::GetLongPath(bakPath);
+
+                       paths::CreateIfNeeded(bakPath);
                }
                else
                {