Also check for the output file without the _ in the filename to see if it exists
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user