Merge branch 'develop' of github.com:RuudBurger/CouchPotatoServer into develop
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