Log overwriting of metadata files

Gives more info for cases like #2641
This commit is contained in:
mano3m
2014-01-11 23:36:23 +01:00
parent c948f38469
commit 464c8ad71c
+3
View File
@@ -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)