From dc2df01b52e648821fa2e9b02e3addc0c9e11d19 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 18 Apr 2025 21:22:26 -0500 Subject: [PATCH] Progress: Continue working on completing the remove program. Remove final remove command in directory recursion. It turns out that there is a bug in FLL `fl_directory_do()` that makes this necessary. That bug is now fixed and this code is no longer needed. In fact, with `fl_directory_do()` fixed this now causes a problem with attempt to double delete a directory. --- sources/c/program/kevux/tools/remove/main/operate.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sources/c/program/kevux/tools/remove/main/operate.c b/sources/c/program/kevux/tools/remove/main/operate.c index bc8dcc1..5a060d4 100644 --- a/sources/c/program/kevux/tools/remove/main/operate.c +++ b/sources/c/program/kevux/tools/remove/main/operate.c @@ -36,17 +36,7 @@ extern "C" { } } - // Remove the directory, if not simulating. - if (main->setting.flag & kt_remove_main_flag_simulate_d) { - fll_print_dynamic(f_string_eol_s, main->program.output.to); - - kt_remove_preprocess_file(main, path, 0, 0x2); - } - else { - return kt_remove_operate_remove(main, path, flag_operate); - } - - return F_no; + return (main->setting.flag & kt_remove_main_flag_simulate_d) ? F_no : F_yes; } #endif // _di_kt_remove_operate_directory_ -- 1.8.3.1