cargo_util::paths

Function symlink_metadata

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

Returns metadata for a file without following symlinks.

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