1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Revert "Fix FileSystem dock won't show any file folders"

This reverts commit 72856d633a.

Fixes #93022.
This commit is contained in:
Rémi Verschelde
2024-06-11 11:46:35 +02:00
parent 62a056aa56
commit e4fa8543ea
10 changed files with 225 additions and 369 deletions

View File

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