summaryrefslogtreecommitdiffstats
path: root/diskIDMain.py
diff options
context:
space:
mode:
authoreuanc <ecochrane@gmail.com>2016-05-13 15:50:13 -0400
committereuanc <ecochrane@gmail.com>2016-05-13 15:50:13 -0400
commitc6568738960b03a18b270c26ffae31b04ae61da7 (patch)
tree0451cffe5b98aae1013ae56da5952f882b4bab68 /diskIDMain.py
parente878981d0d5ff3d0317865a91bd9493b2d731c74 (diff)
downloadDiskFormatID-c6568738960b03a18b270c26ffae31b04ae61da7.zip
DiskFormatID-c6568738960b03a18b270c26ffae31b04ae61da7.tar.gz
DiskFormatID-c6568738960b03a18b270c26ffae31b04ae61da7.tar.bz2
fixed error if directories already exist
Diffstat (limited to 'diskIDMain.py')
-rwxr-xr-xdiskIDMain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/diskIDMain.py b/diskIDMain.py
index f59b4f3..e0971e1 100755
--- a/diskIDMain.py
+++ b/diskIDMain.py
@@ -108,8 +108,8 @@ class kryoMain(QtGui.QMainWindow, diskIDMainGUI.Ui_kryoMain):
# create directories to copy the streamfiles to, as the directories have to have no spaces in them, then copy the files to those directories
outTrackDir = os.path.join(dest_dir,subdirname.replace(" ","_"),"track")
-
- os.makedirs(outTrackDir)
+ if not os.path.exists(outTrackDir):
+ os.makedirs(outTrackDir)
outdir = os.path.join(dest_dir, subdirname.replace(" ","_"))
for trackFile in os.listdir(indirname):