pub fn dir_has_content(dir: &Path) -> bool
Whether a directory exists and contains at least one entry.