diff options
| author | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-16 13:48:44 +0200 |
|---|---|---|
| committer | Andreas T Jonsson <mail@andreasjonsson.se> | 2024-05-16 13:48:44 +0200 |
| commit | a93bbf6f922cd59683c9ed1aeaf5bb9940c843c1 (patch) | |
| tree | d30eb60984886812d2e36a32e501ed68f7453074 /src/path.cpp | |
| parent | 5541f602335a74c357046a603119c6b49b63e25d (diff) | |
| parent | f9fd8f0c25bb0b239e5421c39217d2f8c449911f (diff) | |
Merge branch 'master' into netbsd-ci
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 2f016a578..26ccb7cbf 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); } |