create unique directory inoutput incase of rename error in sick/couch

This commit is contained in:
clinton-hall 2016-01-27 23:05:30 +10:30
parent 8ccb308942
commit bda80c656a

View file

@ -686,6 +686,9 @@ def Transcode_directory(dirName):
if core.OUTPUTVIDEOPATH:
newDir = core.OUTPUTVIDEOPATH
makeDir(newDir)
name = os.path.splitext(os.path.split(dirName)[1])[0]
newDir = os.path.join(newDir, name)
makeDir(newDir)
else:
newDir = dirName
if platform.system() == 'Windows':