mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 04:57:35 +00:00
Tracking issue add.
This commit is contained in:
parent
89c0f50b09
commit
2d88c52ab7
@ -1026,7 +1026,7 @@ impl Metadata {
|
|||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "is_symlink", issue = "none")]
|
#[unstable(feature = "is_symlink", issue = "85748")]
|
||||||
pub fn is_symlink(&self) -> bool {
|
pub fn is_symlink(&self) -> bool {
|
||||||
self.file_type().is_symlink()
|
self.file_type().is_symlink()
|
||||||
}
|
}
|
||||||
|
@ -2588,7 +2588,7 @@ impl Path {
|
|||||||
/// assert_eq!(link_path.is_symlink(), true);
|
/// assert_eq!(link_path.is_symlink(), true);
|
||||||
/// assert_eq!(link_path.exists(), false);
|
/// assert_eq!(link_path.exists(), false);
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "is_symlink", issue = "none")]
|
#[unstable(feature = "is_symlink", issue = "85748")]
|
||||||
pub fn is_symlink(&self) -> bool {
|
pub fn is_symlink(&self) -> bool {
|
||||||
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
|
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user