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

Support a couple of different methods for checking file permissions #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 28, 2019

  1. Support a couple of different methods for checking which permissions …

    …are set for a given file
    
      * GetEffectiveAccessMode returns an os.FileMode representing the permissions the file's owner, "group", and "Everyone" have, determined by calling GetEffectiveRightsFromAclW
      * GetExplicitAccessMode returns a FileMode for the permissions that have been explicitly granted to the owner, "group", and "Everyone" (for example by calling acl.Chmod first).  These permissions are determined by reading the ACL entries with GetExplicitEntriesFromAclW
    
    These values will differ if, for instance, no permissions have been explicitly granted.
    zb140 committed May 28, 2019
    Configuration menu
    Copy the full SHA
    a46de69 View commit details
    Browse the repository at this point in the history