MCPcopy Create free account
hub / github.com/RsyncProject/rsync / is_below

Function is_below

generator.c:1202–1206  ·  view source on GitHub ↗

Helper for recv_generator's skip_dir and dry_missing_dir tests. */

Source from the content-addressed store, hash-verified

1200static int implied_dirs_are_missing;
1201/* Helper for recv_generator's skip_dir and dry_missing_dir tests. */
1202static BOOL is_below(struct file_struct *file, struct file_struct *subtree)
1203{
1204 return F_DEPTH(file) > F_DEPTH(subtree)
1205 && (!implied_dirs_are_missing || f_name_has_prefix(file, subtree));
1206}
1207
1208/* Acts on the indicated item in cur_flist whose name is fname. If a dir,
1209 * make sure it exists, and has the right permissions/timestamp info. For

Callers 1

recv_generatorFunction · 0.85

Calls 1

f_name_has_prefixFunction · 0.85

Tested by

no test coverage detected