Function metadata

pub fn metadata(path: &Path) -> Result<FileAttr>