summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-15 22:53:43 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-15 22:53:43 +0200
commitb41ab974da26f53727368df57185963f0361b34e (patch)
tree39f067089abe5c2ea8b5a55ec0ded655454e44bf
parent1d7fade29c68ec4bb4bb433088894aa1e4d7f50e (diff)
downloadkit-b41ab974da26f53727368df57185963f0361b34e.zip
test
-rw-r--r--source/kit/file.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 1483195..5bc8f9a 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -308,19 +308,15 @@ kit_status_t kit_file_remove_recursive(kit_str_t path,
}
for (i = 0; i < list.files.size; i++) {
- printf(" >> 1 \n");
- fflush(stdout);
str_builder_t full_path = kit_path_join(
path, WRAP_STR(list.files.values[i]), alloc);
- printf(" >> 2 \n");
- fflush(stdout);
+ printf(" REMOVE %s ", BS(full_path));
kit_status_t s = kit_file_remove_recursive(
WRAP_STR(full_path), alloc);
- printf(" >> 3 \n");
- fflush(stdout);
+ if (s != KIT_OK) {
+ printf(" FAILED \n"); fflush(stdout);
+ }
DA_DESTROY(full_path);
- printf(" >> 4 \n");
- fflush(stdout);
assert(s == KIT_OK);
}