>I want to find out, if the user currently logged in has read-write access to the directory. In other words, I want to return the attributes for the directory for the current user.
The low tech answer would be to try, and if it fails and the folder exists then the user does not have rights to that folder :)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges