metadata

Function metadata 

Source
pub async fn metadata(path: impl AsRef<Path>) -> Result<Metadata, Error>
Available on crate feature fs only.
Expand description

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