Create images directory if necessary.

svn: r625
This commit is contained in:
David Hampton 2001-12-16 03:39:25 +00:00
parent 050c213402
commit 8c907dbae0

View File

@ -867,6 +867,19 @@ def on_ok_clicked(obj):
dir_name)
return
image_dir_name = os.path.join(dir_name, "images")
if not os.path.isdir(image_dir_name) and not no_photos:
try:
os.mkdir(image_dir_name)
except IOError, value:
GnomeErrorDialog(_("Could not create the directory : %s") % \
image_dir_name + "\n" + value[1])
return
except:
GnomeErrorDialog(_("Could not create the directory : %s") % \
image_dir_name)
return
filter = filter_map[filterName]
ind_list = []