Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: fs::MetadataExt doesn't include a way to get ChangeTime #112327

Open
juliusl opened this issue Jun 5, 2023 · 0 comments
Open

Windows: fs::MetadataExt doesn't include a way to get ChangeTime #112327

juliusl opened this issue Jun 5, 2023 · 0 comments
Labels
A-io Area: std::io, std::fs, std::net and std::path O-windows Operating system: Windows T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@juliusl
Copy link

juliusl commented Jun 5, 2023

There's a field in FILE_BASIC_INFO called ChangeTime that tracks when file metadata is changed, such as renaming, file attributes, etc.

Currently, this property isn't included in the ::sys::windows::fs::FileAttr implementation, but should be available in the c::FILE_BASIC_INFO impl.

I have a fork that adds this field to the impl and I'd like to create a PR, but I thought it would make sense to create an issue first.

EDIT
BTW, apparently last write time is the last time the data stream changed so this actually represents a different time value.

source

@jyn514 jyn514 added O-windows Operating system: Windows T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. A-io Area: std::io, std::fs, std::net and std::path labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-io Area: std::io, std::fs, std::net and std::path O-windows Operating system: Windows T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants