--- a/generator.c +++ b/generator.c @@ -359,7 +359,8 @@ static void do_delete_pass(void) f_name(file, fbuf); if (!(file->flags & FLAG_CONTENT_DIR)) { - change_local_filter_dir(fbuf, strlen(fbuf), F_DEPTH(file)); + if (F_IS_ACTIVE(file)) + change_local_filter_dir(fbuf, strlen(fbuf), F_DEPTH(file)); continue; }