From 8b09eb822143c2faa137cd527fc16f9ece507182 Mon Sep 17 00:00:00 2001 From: hsoft Date: Sun, 7 Jun 2009 06:56:44 +0000 Subject: [PATCH] [#16 state:fixed] Moved the io.makedirs() call into the try..except in CopyOrMove --HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4012 --- py/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/app.py b/py/app.py index 5e0a5f07..99041c7a 100644 --- a/py/app.py +++ b/py/app.py @@ -146,9 +146,9 @@ class DupeGuru(RegistrableApplication): dest_path = dest_path + source_path[1:-1] #Remove drive letter and filename elif dest_type == 1: dest_path = dest_path + source_path[location_path:-1] - if not io.exists(dest_path): - io.makedirs(dest_path) try: + if not io.exists(dest_path): + io.makedirs(dest_path) if copy: files.copy(source_path, dest_path) else: