diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 23:09:32 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 23:09:32 +0200 |
commit | 713907ef2f1f481641530123ff60404d5a1e755f (patch) | |
tree | 41f4b051ebbe1f6e57426188127a16874bab3a3f /source | |
parent | f37f056e03c0edc0fcf497b23aa2258ef999a447 (diff) | |
download | kit-713907ef2f1f481641530123ff60404d5a1e755f.zip |
test
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/file.c | 8 |
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); |