mirror of
https://github.com/lsd-rs/lsd
synced 2025-03-04 23:17:15 +00:00
upadte comments
This commit is contained in:
parent
2b384ed1df
commit
f3bbf686dc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue