pub fn is_directory_not_empty(err: &Error) -> boolExpand description
Returns true when an io::Error indicates a directory could not be
removed because it still contained entries. The apply planner only removes
tracked descendants; when tracked content is removed and the parent
directory still holds untracked or explicitly ignored siblings, remove_dir
returns this signal. We need both ErrorKind::DirectoryNotEmpty and the raw
codes — Linux=39, macOS/BSD=66, Windows=145 — because Rust does not
always translate every kernel surface into the portable ErrorKind.