[Tutor] Does directory exist?

Michael Montagne Michael Montagne <montagne@boora.com>
Thu Apr 3 14:29:02 2003


What is the best way to check for the existence of a directory?
I used os.stat() in a try:except: statement.  It seems the os.access()
function is intended for this but I can't get it to accept F_OK as the
mode argument.  


-- 
  Michael Montagne  http://www.themontagnes.com  503.226.1575 
--