base: improve handling of directories in browser (thanks to @blakelinkd)

This commit is contained in:
luboslenco
2026-03-01 15:30:24 +01:00
parent ffd6cda66e
commit d028010c8c
3 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ function file_read_directory(path: string): string[] {
let num: i32 = files.length;
for (let i: i32 = 0; i < num; ++i) {
let f: string = files[i];
if (string_index_of(f, ".") > -1) {
if (!iron_is_directory(path_join(path, f))) {
array_splice(files, i, 1);
array_push(files, f);
i--;