diff options
author | Reilly Wood <26268125+rgwood@users.noreply.github.com> | 2022-06-01 20:32:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 20:32:33 -0400 |
commit | 0835dfe5795ef7f7214a9fa6dc8facb8ed166a1c (patch) | |
tree | f643fb620ac27acdda0998adaacb1b5da0180f87 | |
parent | 12cd71f4d3ea6df9c2093781d55134cd9651d754 (diff) | |
download | rust-0835dfe5795ef7f7214a9fa6dc8facb8ed166a1c.tar.gz |
Fix Windows file metadata docs
Retrieving file metadata on Windows now uses GetFileInformationByHandle not GetFileAttributesEx
-rw-r--r-- | library/std/src/fs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 431a1efc8d1..55bd2c59406 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1620,7 +1620,7 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> { /// # Platform-specific behavior /// /// This function currently corresponds to the `stat` function on Unix -/// and the `GetFileAttributesEx` function on Windows. +/// and the `GetFileInformationByHandle` function on Windows. /// Note that, this [may change in the future][changes]. /// /// [changes]: io#platform-specific-behavior @@ -1654,7 +1654,7 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> { /// # Platform-specific behavior /// /// This function currently corresponds to the `lstat` function on Unix -/// and the `GetFileAttributesEx` function on Windows. +/// and the `GetFileInformationByHandle` function on Windows. /// Note that, this [may change in the future][changes]. /// /// [changes]: io#platform-specific-behavior |