os.path.isdir strange behaviouring

Thomas Mangin thomasm at legend.co.uk
Mon Jun 19 11:34:49 EDT 2000


Hi,

I notice that if a directory is root owned and chmoded 700 (let say /test)
and if it contain a directory called test2
os.path.isdir("/test/test2") return 0 if called by a "normal user"

I was expecting an exception.
Can so explain me why this "strange" behaviour ?

Thomas





More information about the Python-list mailing list