mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
fine?
This commit is contained in:
parent
8e20fa0fbf
commit
affe0cb37b
@ -74,10 +74,7 @@ def write_config(tahoe_cfg, config):
|
||||
:return: ``None``
|
||||
"""
|
||||
tmp = tahoe_cfg.temporarySibling()
|
||||
try:
|
||||
tahoe_cfg.parent().makedirs()
|
||||
except OSError:
|
||||
pass
|
||||
tahoe_cfg.parent().makedirs(ignoreExistingDirectory=True)
|
||||
# FilePath.open can only open files in binary mode which does not work
|
||||
# with ConfigParser.write.
|
||||
with open(tmp.path, "wt") as fp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user