pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
Returns metadata for a file without following symlinks.
Equivalent to std::fs::metadata with better error messages.
std::fs::metadata