aboutsummaryrefslogtreecommitdiff
path: root/src/path.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-05-13 12:42:48 +0100
committerGitHub <noreply@github.com>2024-05-13 12:42:48 +0100
commite4ec7cc3f339aba8dd2a35eb4f74efafb591f04b (patch)
treececeb83e9e8f41be45a8aee815ed4c7b1d942773 /src/path.cpp
parent34c8739b69e0778fe19f0593fecb7e7080363862 (diff)
parent971201182abab765bbb99a671eb331b6bedf4bec (diff)
Merge pull request #3580 from Feoramund/suggest-test-all-packages
Suggest `-all-packages` flag when testing empty directory
Diffstat (limited to 'src/path.cpp')
-rw-r--r--src/path.cpp5
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);
}