summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit/file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 9391ea7..7f971af 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -308,8 +308,14 @@ kit_status_t kit_file_remove_recursive(kit_str_t path,
}
for (i = 0; i < list.files.size; i++) {
+ printf(" JOIN \"%s\" + \"%s\" \n", BS(path),
+ BS(list.files.values[i]));
+ fflush(stdout);
str_builder_t full_path = kit_path_join(
path, WRAP_STR(list.files.values[i]), alloc);
+ printf(" REMOVE %s (%d bytes) \n", BS(full_path),
+ (int) full_path.size);
+ fflush(stdout);
kit_status_t s = kit_file_remove_recursive(
WRAP_STR(full_path), alloc);
DA_DESTROY(full_path);
@@ -430,6 +436,8 @@ kit_path_list_t kit_folder_enum(kit_str_t path,
break;
}
+ printf(" ENUM %s \n", data.cFileName);
+ fflush(stdout);
i64 size = 0;
while (size < MAX_PATH && data.cFileName[size] != '\0') size++;
DA_INIT(result.files.values[n], size, alloc);