|
@@ -154,7 +154,7 @@ String DirAccessUnix::get_next() {
|
|
_cisdir = (entry->d_type == DT_DIR);
|
|
_cisdir = (entry->d_type == DT_DIR);
|
|
}
|
|
}
|
|
|
|
|
|
- _cishidden = (fname != "." && fname != ".." && fname.begins_with("."));
|
|
|
|
|
|
+ _cishidden = is_hidden(fname);
|
|
|
|
|
|
return fname;
|
|
return fname;
|
|
}
|
|
}
|
|
@@ -408,6 +408,10 @@ String DirAccessUnix::get_filesystem_type() const {
|
|
return ""; //TODO this should be implemented
|
|
return ""; //TODO this should be implemented
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool DirAccessUnix::is_hidden(const String &p_name) {
|
|
|
|
+ return p_name != "." && p_name != ".." && p_name.begins_with(".");
|
|
|
|
+}
|
|
|
|
+
|
|
DirAccessUnix::DirAccessUnix() {
|
|
DirAccessUnix::DirAccessUnix() {
|
|
|
|
|
|
dir_stream = 0;
|
|
dir_stream = 0;
|