summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 12:12:24 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 12:12:24 +0200
commitff8e24098f01eacea7ef1323afd7866858f892fc (patch)
tree1442f5b816ddb8a636791d633ef07f4368db65fc
parent7f113042c01e4ad59a8cd747bcc1a47058fa2a43 (diff)
parent0d3d5ac76983de35b8c1dddd65a4c2f8be74d555 (diff)
Merge pull request #66467 from nikitalita/fix-make-dir-windows
make_dir() choking on ".."
-rw-r--r--drivers/windows/dir_access_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp
index 11fd29c8f5..7dd294c7a1 100644
--- a/drivers/windows/dir_access_windows.cpp
+++ b/drivers/windows/dir_access_windows.cpp
@@ -160,7 +160,7 @@ Error DirAccessWindows::make_dir(String p_dir) {
p_dir = current_dir.path_join(p_dir);
}
- p_dir = p_dir.replace("/", "\\");
+ p_dir = p_dir.simplify_path().replace("/", "\\");
bool success;
int err;