pub fn metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
Given a path, query the file system to get information about a file, directory, etc.
Wrapper for fs::metadata.
fs::metadata