eels <[EMAIL PROTECTED]> wrote:
> how can I check whether a directory is readable or not. Are there
> differences between unix and windows?
The Pythonic way would be to just do what you need to do (in this
case, presumably, read the directory) and catch the specific exception
(in this case, presum
eels wrote:
> Hello,
> how can I check whether a directory is readable or not. Are there
> differences between unix and windows?
As far as I know there aren't any differences,
code:
import os
if access("/root", os.R_OK):
print "You are able to read the /root dir"
--
http://mail.python.