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