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

Function f_name_has_prefix

flist.c:3374–3379  ·  view source on GitHub ↗

Returns 1 if f1's filename has all of f2's filename as a prefix. This does * not match if f2's basename is not an exact match of a path element in f1. * E.g. /path/foo is not a prefix of /path/foobar/baz, but /path/foobar is. */

Source from the content-addressed store, hash-verified

3372 * not match if f2's basename is not an exact match of a path element in f1.
3373 * E.g. /path/foo is not a prefix of /path/foobar/baz, but /path/foobar is. */
3374int f_name_has_prefix(const struct file_struct *f1, const struct file_struct *f2)
3375{
3376 found_prefix = 0;
3377 f_name_cmp(f1, f2);
3378 return found_prefix;
3379}
3380
3381char *f_name_buf(void)
3382{

Callers 1

is_belowFunction · 0.85

Calls 1

f_name_cmpFunction · 0.85

Tested by

no test coverage detected