-- else if (delete_during && f_out != -1 && !phase
-- && BITS_SETnUNSET(file->flags, FLAG_CONTENT_DIR, FLAG_MISSING_DIR))
-- delete_in_dir(fname, file, &real_sx.st.st_dev);
-+ else if (file->flags & FLAG_CONTENT_DIR && f_out != -1) {
-+ if (delete_during && !phase && !(file->flags & FLAG_MISSING_DIR))
-+ delete_in_dir(fname, file, &real_sx.st.st_dev);
-+ upcoming_whole_dir = 1;
-+ } else
-+ upcoming_whole_dir = 0;