diff options
Diffstat (limited to 'source/kit/file.c')
-rw-r--r-- | source/kit/file.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/kit/file.c b/source/kit/file.c index faeebcf..08f1888 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -251,14 +251,22 @@ kit_status_t kit_folder_create(kit_str_t path) { } kit_status_t kit_folder_create_recursive(kit_str_t path) { - i64 i; - - for (i = 0;; i++) { + for (i32 i = 0;; i++) { + printf(" * %d * \n", i); + fflush(stdout); + printf(" * TAKE * \n"); + fflush(stdout); str_t part = kit_path_take(path, i); - i32 type = kit_path_type(part); + printf(" * TYPE * \n"); + fflush(stdout); + i32 type = kit_path_type(part); if (type == KIT_PATH_FILE) return KIT_ERROR_FILE_ALREADY_EXISTS; if (type == KIT_PATH_NONE) { + printf(" * CREATE * \n"); + fflush(stdout); + printf(" \"%s\" \n", BS(part)); + fflush(stdout); kit_status_t s = kit_folder_create(part); if (s != KIT_OK) return s; |