fn directory_contents(path: &path::PathBuf) -> collections::HashSet<path::PathBuf> {
    let mut paths = collections::HashSet::new();
    if let Ok(contents) = path.read_dir() {
        for content in contents {
            if let Ok(found_content) = content {
                paths.insert(found_content.path());
            }
        }
    }

    paths
}
/// Gets the contents of a directory.
///
/// Exists primarily to unwrap and ignore any unencodeable names.
Gets the contents of a directory.
Exists primarily to unwrap and ignore any unencodeable names.
Gets the contents of a directory . Exists primarily to unwrap and ignore any unencodeable names .
fn directory_contents(path: &path::PathBuf) -> collections::HashSet<path::PathBuf> {
    let mut paths = collections::HashSet::new();
    if let Ok(contents) = path.read_dir() {
        for content in contents {
            if let Ok(found_content) = content {
                paths.insert(found_content.path());
            }
        }
    }
    paths
}
fn directory_contents ( path : & path :: PathBuf ) -> collections :: HashSet < path :: PathBuf > { let mut paths = collections :: HashSet :: new ( ) ; if let Ok ( contents ) = path . read_dir ( ) { for content in contents { if let Ok ( found_content ) = content { paths . insert ( found_content . path ( ) ) ; } } } paths }
Gets the contents of a directory.
Gets the contents of a directory .
path
&path::PathBuf
path
&path::PathBuf