[Win32utils-devel] [win32-file] Suggested API change

Daniel Berger djberg96 at yahoo.com
Sat Mar 5 16:30:53 EST 2005

Hi all,

As things stand now, to get the ACL for a file, it's a
two step process:

File.get_permissions("some_file").each{ |acct,perm|
  p acct
  p File.securities(perm)

I was thinking of merging these two calls into one so
that it would return a hash, with the account as the
key, and the value would be an array of access rights.
 Or possibly an array of ACLStruct's instead
of a hash.

In other words, File.get_permissions would call
File.securities internally.

Seem reasonable?  Or too much tinkering?  Perhaps a
separate method in case folks would rather have the
OR'd numeric value?



Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 

More information about the win32utils-devel mailing list