OS.MKDIR( ) Overwriting previous folder created...
Larry Bates
larry.bates at websafe.com
Thu Feb 2 17:02:44 EST 2006
try os.path.exists(path)
-Larry Bates
Ernesto wrote:
> Ernesto wrote:
>> I couldn't find this with a search, but isn't there a way to overwrite
>> a previous folder (or at least not perform osmkdir( ) if your program
>> detects it already exists). Thanks !
>
> I suppose this also leads to the question of:
>
> "Is there a way to determine if a path exists or not?" Then I could
> do:
>
> if(path exists){}
> else{mkdir("")}
>
More information about the Python-list
mailing list