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

Revert "Optimize DirAccessUnix::get_next() for some file systems"

This commit is contained in:
Geequlim
2019-07-21 11:48:53 +08:00
committed by GitHub
parent 4379395892
commit ee9f46423b

View File

@@ -136,12 +136,11 @@ String DirAccessUnix::get_next() {
return "";
}
String fname = fix_unicode_name(entry->d_name);
if (entry->d_type == DT_UNKNOWN) {
//typedef struct stat Stat;
struct stat flags;
String fname = fix_unicode_name(entry->d_name);
String f = current_dir.plus_file(fname);
if (stat(f.utf8().get_data(), &flags) == 0) {
@@ -159,9 +158,6 @@ String DirAccessUnix::get_next() {
_cisdir = false;
}
} else {
_cisdir = (entry->d_type == DT_DIR);
}
_cishidden = (fname != "." && fname != ".." && fname.begins_with("."));