summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/kit/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 7f971af..674ea94 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -429,6 +429,10 @@ kit_path_list_t kit_folder_enum(kit_str_t path,
return result;
do {
+ if (strcmp(data.cFileName, ".") == 0 ||
+ strcmp(data.cFileName, "..") == 0)
+ continue;
+
i64 n = result.files.size;
DA_RESIZE(result.files, n + 1);
if (result.files.size != n + 1) {