Rollup merge of #73809 - robyoung:docs/add-links-to-DirEntry-metadata, r=hanna-kruppe
Add links to fs::DirEntry::metadata `fs::DirEntry::metadata` doesn't traverse symlinks. It is not immediately clear what to do if you do want to traverse symlinks. This change adds links to the two other `metadata` functions that will follow symlinks.
This commit is contained in:
commit
cdb59d9041
1 changed files with 4 additions and 1 deletions
|
|
@ -1445,7 +1445,10 @@ impl DirEntry {
|
|||
/// Returns the metadata for the file that this entry points at.
|
||||
///
|
||||
/// This function will not traverse symlinks if this entry points at a
|
||||
/// symlink.
|
||||
/// symlink. To traverse symlinks use [`fs::metadata`] or [`fs::File::metadata`].
|
||||
///
|
||||
/// [`fs::metadata`]: fn.metadata.html
|
||||
/// [`fs::File::metadata`]: struct.File.html#method.metadata
|
||||
///
|
||||
/// # Platform-specific behavior
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue