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

std: Add more accessors for Metadata on Windows #62980

Merged
merged 1 commit into from
Jul 26, 2019

Commits on Jul 26, 2019

  1. std: Add more accessors for Metadata on Windows

    This commit adds accessors for more fields in `fs::Metadata` on Windows
    which weren't previously exposed. There's two sources of `fs::Metadata`
    on Windows currently, one from `DirEntry` and one from a file itself.
    These two sources of information don't actually have the same set of
    fields exposed in their stat information, however. To handle this the
    platform-specific accessors of Windows-specific information all return
    `Option` to return `None` in the case a metadata comes from a
    `DirEntry`, but they're guaranteed to return `Some` if it comes from a
    file itself.
    
    This is motivated by some changes in CraneStation/wasi-common#42, and
    I'm curious how others feel about this platform-specific functionality!
    alexcrichton committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    c69f367 View commit details
    Browse the repository at this point in the history