Need function to test if EFFECTIVE UID has read-access to a file.
Markus Kemp
NutJob at gmx.net
Thu Nov 18 11:47:06 EST 2004
Oh, and another reason why I can't use the method suggested by you is
that I'm dealing with directories, not files. Then again .... I guess
I could do something like:
try:
os.listdir( strPathname )
except:
print "No read access to pathname", strPathname, "!"
Problem is, I don't wanna catch __everything__. Does anyone know what
kind of exception is.listdir() throws if it fails to read a directory?
More information about the Python-list
mailing list