1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Fix FileSystem dock won't show any file folders (v2)

This commit is contained in:
Hilderin
2024-06-11 20:11:10 -04:00
parent ee363af0ed
commit 1b0c5cbc01
7 changed files with 147 additions and 63 deletions

View File

@@ -59,11 +59,9 @@ bool FileAccess::exists(const String &p_name) {
return true;
}
Ref<FileAccess> f = open(p_name, READ);
if (f.is_null()) {
return false;
}
return true;
// Using file_exists because it's faster than trying to open the file.
Ref<FileAccess> ret = create_for_path(p_name);
return ret->file_exists(p_name);
}
void FileAccess::_set_access_type(AccessType p_access) {