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

Function is_backup_file

delete.c:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35int skipped_deletes = 0;
36
37static inline int is_backup_file(char *fn)
38{
39 int k = strlen(fn) - backup_suffix_len;
40 return k > 0 && strcmp(fn+k, backup_suffix) == 0;
41}
42
43/* The directory is about to be deleted: if DEL_RECURSE is given, delete all
44 * its contents, otherwise just checks for content. Returns DR_SUCCESS or

Callers 1

delete_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected