Skip to content

Commit 77d43e7

Browse files
authored
Fix Windows file metadata docs
Retrieving file metadata on Windows now uses GetFileInformationByHandle not GetFileAttributesEx
1 parent a0229b4 commit 77d43e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: std/src/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
16201620
/// # Platform-specific behavior
16211621
///
16221622
/// This function currently corresponds to the `stat` function on Unix
1623-
/// and the `GetFileAttributesEx` function on Windows.
1623+
/// and the `GetFileInformationByHandle` function on Windows.
16241624
/// Note that, this [may change in the future][changes].
16251625
///
16261626
/// [changes]: io#platform-specific-behavior
@@ -1654,7 +1654,7 @@ pub fn metadata<P: AsRef<Path>>(path: P) -> io::Result<Metadata> {
16541654
/// # Platform-specific behavior
16551655
///
16561656
/// This function currently corresponds to the `lstat` function on Unix
1657-
/// and the `GetFileAttributesEx` function on Windows.
1657+
/// and the `GetFileInformationByHandle` function on Windows.
16581658
/// Note that, this [may change in the future][changes].
16591659
///
16601660
/// [changes]: io#platform-specific-behavior

0 commit comments

Comments
 (0)