mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-15 00:26:27 +00:00
windows-only checks
This commit is contained in:
parent
4fe65a8efd
commit
bd46ff2f67
@ -85,7 +85,10 @@ def write_config(tahoe_cfg, config):
|
||||
# Windows doesn't have atomic overwrite semantics for moveTo. Thus we end
|
||||
# up slightly less than atomic.
|
||||
if platform.isWindows():
|
||||
tahoe_cfg.remove()
|
||||
try:
|
||||
tahoe_cfg.remove()
|
||||
except OSError:
|
||||
pass
|
||||
tmp.moveTo(tahoe_cfg)
|
||||
|
||||
def validate_config(fname, cfg, valid_config):
|
||||
|
Loading…
x
Reference in New Issue
Block a user