- | (incremental ? FLAG_DIVERT_DIRS : 0);
- file = send_file_name(flist, fbuf, &st, top_flags, ALL_FILTERS);
- if (file) {
- send_file_entry(file, f, flist->count - 1);
- if (!incremental)
- send_if_directory(f, flist, file, fbuf, len, flags);
- }
- } else {
- file = send_file_name(flist, fbuf, &st, flags, ALL_FILTERS);
- if (file)
- send_file_entry(file, f, flist->count - 1);
- }
+ | (inc_recurse ? FLAG_DIVERT_DIRS : 0);
+ file = send_file_name(f, flist, fbuf, &st,
+ top_flags, ALL_FILTERS);
+ if (file && !inc_recurse)
+ send_if_directory(f, flist, file, fbuf, len, flags);
+ } else
+ send_file_name(f, flist, fbuf, &st, flags, ALL_FILTERS);