How to check if a directory is exist in python?

Steve Holden steve at holdenweb.com
Sun Mar 19 22:53:42 CET 2006


Vincent Wehren wrote:
> | <yinglcs at gmail.com> wrote in message
> | news:1142803465.164833.38160 at j33g2000cwa.googlegroups.com...
> ||I check the documentation here, but it does not say how to check if a
> || directory is exist in python?
> || http://docs.python.org/lib/os-file-dir.html
> |
> | Look at the exist or isdir  methods of the os.path module
> 
> Ofcourse I mean "exists"...
> 
You also mean "functions", not "methods". *Classes* have methods.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd                 www.holdenweb.com
Love me, love my blog         holdenweb.blogspot.com




More information about the Python-list mailing list