Merge pull request #66467 from nikitalita/fix-make-dir-windows

make_dir() choking on ".."
This commit is contained in:
Rémi Verschelde 2022-09-28 12:12:24 +02:00
commit ff8e24098f

View File

@ -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;