MCPcopy Create free account
hub / github.com/coreutils/coreutils / errno_rmdir_non_empty

Function errno_rmdir_non_empty

src/rmdir.c:73–77  ·  view source on GitHub ↗

Return true if ERROR_NUMBER is one of the values associated with a failed rmdir due to non-empty target directory. */

Source from the content-addressed store, hash-verified

71/* Return true if ERROR_NUMBER is one of the values associated
72 with a failed rmdir due to non-empty target directory. */
73static bool
74errno_rmdir_non_empty (int error_number)
75{
76 return error_number == ENOTEMPTY || error_number == EEXIST;
77}
78
79/* Return true if when rmdir fails with errno == ERROR_NUMBER
80 the directory may be non empty. */

Callers 1

ignorable_failureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected