pub async fn metadata(path: impl AsRef<Path>) -> Result<Metadata>
Expand description

Given a path, query the file system to get information about a file, directory, etc.