fn try_metadata<P>(path: P) -> Result<Option<Metadata>>where P: AsRef<Path>,
Try to get metadata for a path