upadte comments

This commit is contained in:
Jay 2020-06-17 14:33:30 +01:00 committed by Abin Simon
parent 2b384ed1df
commit f3bbf686dc

View file

@ -188,7 +188,7 @@ impl Meta {
pub fn from_path(path: &Path) -> Result<Self, std::io::Error> {
let (metadata, symlink_meta) = if read_link(path).is_ok() {
// If the file is a link, retrieve the metadata without following the link
// If the file is a link, retrieve link metadata and target meta (if exists).
(path.symlink_metadata()?, path.metadata().ok())
} else {
(path.metadata()?, None)