Remove exiftool backup file

This commit is contained in:
Jaisen Mathai 2015-10-26 02:06:48 -07:00
parent 258fea6090
commit b69f06b498
1 changed files with 3 additions and 1 deletions

View File

@ -250,7 +250,9 @@ class Media(object):
if(process_output.returncode != 0):
return False
os.remove('%s%s' % (source, '_original'))
exiftool_backup_file = '%s%s' % (source, '_original')
if(os.path.isfile(exiftool_backup_file) is True):
os.remove(exiftool_backup_file)
return True
@classmethod