rm_rf_depth_pat
ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0;
return rm_rf_depth_pat(kcore_dir_path, 0, pat);
return rm_rf_depth_pat(path, 0, pat);
return rm_rf_depth_pat(path, INT_MAX, NULL);