|
@@ -451,9 +451,11 @@ void FileSystemDock::_navigate_to_path(const String &p_path, bool p_select_in_fa
|
|
} else if (dirAccess->dir_exists(p_path)) {
|
|
} else if (dirAccess->dir_exists(p_path)) {
|
|
path = target_path + "/";
|
|
path = target_path + "/";
|
|
} else {
|
|
} else {
|
|
|
|
+ memdelete(dirAccess);
|
|
ERR_EXPLAIN(vformat(TTR("Cannot navigate to '%s' as it has not been found in the file system!"), p_path));
|
|
ERR_EXPLAIN(vformat(TTR("Cannot navigate to '%s' as it has not been found in the file system!"), p_path));
|
|
ERR_FAIL();
|
|
ERR_FAIL();
|
|
}
|
|
}
|
|
|
|
+ memdelete(dirAccess);
|
|
}
|
|
}
|
|
|
|
|
|
_set_current_path_text(path);
|
|
_set_current_path_text(path);
|