-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
This is 100% a nitpicky ask but I got this error message:
failed to query metadata of symlink `/tmp/ ...
It was a call to fs_err::symlink_metadata.
Lines 96 to 98 in 62640b6
| E::SymlinkMetadata => { | |
| write!(formatter, "failed to query metadata of symlink `{}`", path) | |
| } |
I think it should have the same error message as the regular metadata call.
Line 82 in 62640b6
| E::Metadata => write!(formatter, "failed to query metadata of file `{}`", path), |
I know symlink_metadata makes it sound like it's supposed to refer to reading a symlink, like read_link.
But that method actually exists so that we can check file metadata without traversing symlinks, it is a different behavior, but it doesn't imply that the given path is actually a symlink.
You might just want to check for file types, but you want 3 options instead of just 2, without really expecting that file to be a symlink.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels