diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-05-12 19:52:36 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-05-12 19:52:36 -0400 |
| commit | 971201182abab765bbb99a671eb331b6bedf4bec (patch) | |
| tree | 0fddb3bd63659c287edd20fad2de447d0d97024b /src/path.cpp | |
| parent | 1935811b2c6118e633dd5c4cef2e9e70f7b962e5 (diff) | |
Fix `read_directory()` skipping directories on UNIX-likes
Diffstat (limited to 'src/path.cpp')
| -rw-r--r-- | src/path.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/path.cpp b/src/path.cpp index b07f20870..93f6f5000 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -400,16 +400,13 @@ gb_internal ReadDirectoryError read_directory(String path, Array<FileInfo> *fi) continue; } - if (S_ISDIR(dir_stat.st_mode)) { - continue; - } - i64 size = dir_stat.st_size; FileInfo info = {}; info.name = copy_string(a, name); info.fullpath = path_to_full_path(a, filepath); info.size = size; + info.is_dir = S_ISDIR(dir_stat.st_mode); array_add(fi, info); } |