diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 23:03:36 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 23:03:36 +0200 |
commit | 5db30e1110422e3bbade6dc1b01ee4ee4c9029f1 (patch) | |
tree | d60b089d8120fe29b13e3a14b8ba09e4bfe93957 | |
parent | 5c6e0469df8d4934bb119d5c2bc3669a43634e3b (diff) | |
download | kit-5db30e1110422e3bbade6dc1b01ee4ee4c9029f1.zip |
test
-rw-r--r-- | source/kit/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index 8018660..41b5b9c 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -308,6 +308,8 @@ 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])); 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), @@ -432,8 +434,9 @@ kit_path_list_t kit_folder_enum(kit_str_t path, break; } + printf(" ENUM %s \n", data.cFileName); i64 size = 0; - while (size < MAX_PATH && data.cFileName[size] != L'\0') size++; + while (size < MAX_PATH && data.cFileName[size] != '\0') size++; DA_INIT(result.files.values[n], size, alloc); if (result.files.values[n].size != size) { DA_RESIZE(result.files, n); |