]> Kevux Git Server - kevux-tools/commitdiff
Progress: Continue working on completing the remove program.
authorKevin Day <Kevin@kevux.org>
Sat, 19 Apr 2025 02:22:26 +0000 (21:22 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 19 Apr 2025 02:22:26 +0000 (21:22 -0500)
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

index bc8dcc1ded119076b68585e9a9a6d5edd3606f64..5a060d40bda3e6fe0f9fbdf477e667e5e87da225 100644 (file)
@@ -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_