[wesnoth_addon_manager] Remove old campaign directory...
...before unpacking a new one.
This commit is contained in:
parent
236019ef4e
commit
1aa2d5cb8d
1 changed files with 1 additions and 0 deletions
|
@ -431,6 +431,7 @@ class CampaignClient:
|
|||
path is the path under which it will be placed.
|
||||
"""
|
||||
|
||||
shutil.rmtree(path, True)
|
||||
try:
|
||||
os.mkdir(path)
|
||||
except OSError:
|
||||
|
|
Loading…
Add table
Reference in a new issue