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

Function get_del_for_flag

delete.c:227–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227uint16 get_del_for_flag(uint16 mode)
228{
229 if (S_ISREG(mode))
230 return DEL_FOR_FILE;
231 if (S_ISDIR(mode))
232 return DEL_FOR_DIR;
233 if (S_ISLNK(mode))
234 return DEL_FOR_SYMLINK;
235 if (IS_DEVICE(mode))
236 return DEL_FOR_DEVICE;
237 if (IS_SPECIAL(mode))
238 return DEL_FOR_SPECIAL;
239 exit_cleanup(RERR_UNSUPPORTED); /* IMPOSSIBLE */
240}

Callers 2

validate_backup_dirFunction · 0.85
make_backupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected