Skip to main content

metadata

Function metadata 

Source
pub 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.

This is a wrapper around std::fs::metadata that echoes the operation to the console.