I'm trying to write a quick recursive function to iterate through a folder tree and list off the owner and file permissions of each of the files... can someone point me in the direction of where to start. I can handle the recursion over the folder tree without any headaches... it's when it comes to reading the file permissions that I'm coming unstuck.
So far I've checked out the File.GetAccessC ontrol method but from what I've read so far it appears to point to a bitmask of permissions - normally this wouldn't be an issue but I can't find any information on the constants that are used for the bitmask.
So far I've checked out the File.GetAccessC ontrol method but from what I've read so far it appears to point to a bitmask of permissions - normally this wouldn't be an issue but I can't find any information on the constants that are used for the bitmask.
Comment