Skip to content

Tracking Issue for extending std::fs::Permissions on Windows #152956

@asder8215

Description

@asder8215

Feature gate: #![feature(windows_permissions_ext)]

This is a tracking issue for rust-lang/libs-team#388

It adds an extension trait PermissionsExt to Permissions struct for Windows to get and set file attributes.

Public API

// std::os::windows::fs::PermissionsExt;
pub trait PermissionsExt: Sealed {
    /// Returns the file attribute bits.
    fn file_attributes(&self) -> u32;

    /// Sets the file attribute bits.
    fn set_file_attributes(&mut self, mask: u32);

    /// Creates a new instance from the given file attribute bits.
    fn from_file_attributes(mask: u32) -> Self;
}

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

  • From the ACP discussion, what specific file attribute should have a method?

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions