Merge pull request #66491 from KoBeWi/open_for_path
Fix wrong DirAccess function in project converter
This commit is contained in:
commit
33dbcea039
1 changed files with 1 additions and 1 deletions
|
@ -2248,7 +2248,7 @@ Vector<String> ProjectConverter3To4::check_for_files() {
|
||||||
String path = directories_to_check.get(directories_to_check.size() - 1); // Is there any pop_back function?
|
String path = directories_to_check.get(directories_to_check.size() - 1); // Is there any pop_back function?
|
||||||
directories_to_check.resize(directories_to_check.size() - 1); // Remove last element
|
directories_to_check.resize(directories_to_check.size() - 1); // Remove last element
|
||||||
|
|
||||||
Ref<DirAccess> dir = DirAccess::create_for_path(path);
|
Ref<DirAccess> dir = DirAccess::open(path);
|
||||||
if (dir.is_valid()) {
|
if (dir.is_valid()) {
|
||||||
dir->set_include_hidden(true);
|
dir->set_include_hidden(true);
|
||||||
dir->list_dir_begin();
|
dir->list_dir_begin();
|
||||||
|
|
Loading…
Reference in a new issue