12 auto it = fs::directory_iterator(p);
13 auto end = fs::directory_iterator();
15 for(; it != end; ++it) {
16 if(fs::is_regular_file(*it)) {
17 log <<
"rm " << *it << std::endl;
24 log <<
"rm " << *it << std::endl;
28 log <<
"rm " << p << std::endl;
void recurs_rm_files(fs::path p, bool dry_run, Log &log)
Remove files recursively.