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…
Reference in New Issue
Block a user