pub fn metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
Given a path, queries the file system to get information about a file, directory, etc.
May return any of the same errors as std::fs::metadata
std::fs::metadata