Fix file metadata documentation for Windows#97635
Conversation
Retrieving file metadata on Windows now uses GetFileInformationByHandle not GetFileAttributesEx
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @kennytm (or someone else) soon. Please see the contribution instructions for more information. |
|
Looks like the function was changed a long time ago but the documentation was never updated. @bors r+ rollup |
|
📌 Commit 0835dfe has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#96894 (Apply track_caller to closure on `expect_non_local()`) - rust-lang#97023 (Diagnose anonymous lifetimes errors more uniformly between async and regular fns) - rust-lang#97397 (Stabilize `box_into_pin`) - rust-lang#97587 (Migrate more diagnostics to use the `#[derive(SessionDiagnostic)]`) - rust-lang#97603 (Arc make_mut doc comment spelling correction.) - rust-lang#97635 (Fix file metadata documentation for Windows) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I noticed that the documentation for
fs::symlink_metadata()andfs::metadata()is incorrect; the underlying code callsGetFileInformationByHandle()on Windows, notGetFileAttributesEx(). There are currently no uses ofGetFileAttributesEx()in this repo.