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:
Manish Goregaokar 2020-06-27 22:30:06 -07:00 committed by GitHub
commit cdb59d9041
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
///