Skip to content

Commit

Permalink
Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Oct 1, 2024
1 parent b7b3b2e commit 0aa2c3a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion base/sources/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,21 @@ function file_read_directory(path: string): string[] {
// }
// if (file_internal.exists(path)) return map_get(file_internal, path);
// ///end
return string_split(iron_read_directory(path), "\n");

let files: string[] = string_split(iron_read_directory(path), "\n");
///if arm_windows
let num: i32 = files.length;
for (let i: i32 = 0; i < num; ++i) {
let f: string = files[i];
if (string_index_of(f, ".") > -1) {
array_splice(files, i, 1);
array_push(files, f);
i--;
num--;
}
}
///end
return files;
}

function file_create_directory(path: string) {
Expand Down

0 comments on commit 0aa2c3a

Please sign in to comment.