Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

detect acl (access control list) restrictions when working with NTFS directories and files

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Cox, Stuart TRAN:EX

I want to EnumerateFiles, that is, create a list of files that match a wildcard, on a drive or branch of it. I can do that fairly easily with code I've already got. It works reliably in most cases.

The exception cases are when Windows has had some form of restriction applied using its ACL security feature. The EnumerateFiles procedure uses FindFirst, FindNext and FindClose and can access the file attributes of the file/directory that it comes across. The mere file attributes don't return enough information about the accessibility of a given directory for me to avoid trying to change to it when I'm not permitted by its ACL settings.

How can I obtain the ACL properties of a given file/directory so that I can be more fully informed?

Stu Cox

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091126/e56642c0/attachment.html>

Reply by email