Merge pull request #2687 from mano3m/develop_log_metadata
Log overwriting of metadata files
This commit is contained in:
@@ -97,6 +97,9 @@ class Plugin(object):
|
||||
|
||||
self.makeDir(os.path.dirname(path))
|
||||
|
||||
if os.path.exists(path):
|
||||
log.info('%s already exists, overwriting file with new version', path)
|
||||
|
||||
try:
|
||||
f = open(path, 'w+' if not binary else 'w+b')
|
||||
f.write(content)
|
||||
|
||||
Reference in New Issue
Block a user