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

Function ignorable_failure

src/rmdir.c:98–105  ·  view source on GitHub ↗

Return true if an rmdir failure with errno == error_number for DIR is ignorable. */

Source from the content-addressed store, hash-verified

96/* Return true if an rmdir failure with errno == error_number
97 for DIR is ignorable. */
98static bool
99ignorable_failure (int error_number, char const *dir)
100{
101 return (ignore_fail_on_non_empty
102 && (errno_rmdir_non_empty (error_number)
103 || (errno_may_be_non_empty (error_number)
104 && directory_status (AT_FDCWD, dir) == DS_NONEMPTY)));
105}
106
107/* Remove any empty parent directories of DIR.
108 If DIR contains slash characters, at least one of them

Callers 2

remove_parentsFunction · 0.85
mainFunction · 0.85

Calls 3

errno_rmdir_non_emptyFunction · 0.85
errno_may_be_non_emptyFunction · 0.85
directory_statusFunction · 0.85

Tested by

no test coverage detected