Merge pull request #59955 from lufog/add_folder_fix

This commit is contained in:
Rémi Verschelde 2022-04-06 21:13:22 +02:00 committed by GitHub
commit 9d3c8f04d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1432,7 +1432,7 @@ void FileSystemDock::_make_dir_confirm() {
Error err = da->change_dir(directory);
ERR_FAIL_COND_MSG(err != OK, "Cannot open directory '" + directory + "'.");
if (da->dir_exists(directory)) {
if (da->dir_exists(dir_name)) {
EditorNode::get_singleton()->show_warning(TTR("Could not create folder. File with that name already exists."));
return;
}