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.
}
}
- // 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_