mirror of
https://github.com/ONLYOFFICE/DocSpace-buildtools.git
synced 2025-04-18 13:44:02 +03:00
delete campaigns folder if exists
This commit is contained in:
parent
299dc15803
commit
9f68c672d8
@ -31,6 +31,9 @@ def move_folder():
|
||||
srcPath = publicDir + "/src"
|
||||
campaignsPath = srcPath + "/campaigns"
|
||||
newPath = publicDir + "/campaigns"
|
||||
|
||||
if os.path.exists(newPath):
|
||||
shutil.rmtree(newPath)
|
||||
shutil.move(campaignsPath, newPath)
|
||||
shutil.rmtree(srcPath)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user