Hello!
I have written a piece of code that creates 3 folders in the working directory, asking the user to proceed even if it may overwrite existing folders. The problem is that the more pictures there are the more time it needs to create the folders. Is there any way to solve it? You'll find the code at the end of the message.
Cheers!
Dani
overwrite = ''
while not overwrite.startswith('y'): ## 'n' case will do exit
overwrite = raw_input('> ').lower()
if overwrite.startswith('n'):
raise SystemExit, 'Thank you for using WIP'
print
print '©Acrocephalus Soft 2010'
#Create a Backup directory
if not os.path.exists('Backup'):
os.mkdir('Backup')
#Create a Resized directory
if not os.path.exists('Resized'):
os.mkdir('Resized')
#Create a marked directory
if not os.path.exists('Watermarked'):
os.mkdir('Watermarked')