cargo_util::paths

Function metadata

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

Returns metadata for a file (follows symlinks).

Equivalent to std::fs::metadata with better error messages.