1 parent
c948f38469
commit
464c8ad71c
1 file changed
+3
@@ -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