From: Kevin Day Date: Sat, 19 Apr 2025 02:22:26 +0000 (-0500) Subject: Progress: Continue working on completing the remove program. X-Git-Tag: 0.7.1~8 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=dc2df01b52e648821fa2e9b02e3addc0c9e11d19;p=kevux-tools 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. --- 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_