detecting and creating directories

Pete Shinners pete at visionart.com
Mon Oct 29 14:06:14 EST 2001


Angel Asencio wrote:

> Greetings:
> 
>   I found the module that has the command to make directories, but I
> have not been lucky finding a way  to check for the existance of a
> directory (so it is not there, I can create it).
> 
> Any pointers?

os.path.isdir() would be a likely starting place :]




More information about the Python-list mailing list