Also check for the output file without the _ in the filename to see if it exists
This commit is contained in:
parent
3cb3930c1c
commit
aa514032f5
2 changed files with 29 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue