Also check for the output file without the _ in the filename to see if it exists

This commit is contained in:
2013-07-21 21:50:58 +10:00
parent 3cb3930c1c
commit aa514032f5
2 changed files with 29 additions and 1 deletions

View File

@@ -38,6 +38,11 @@ class EncodeData:
if os.path.exists(self.outputfile):
errors.append("FILE_EXISTS")
if self.outputfile[-5:-4] == "_":
tempoutfile = self.outputfile[:-5] + self.outputfile[-4:]
if os.path.exists(tempoutfile):
errors.append("FILE_EXISTS")
return errors