delete campaigns folder if exists

This commit is contained in:
Viktor Fomin 2024-02-21 02:41:01 +03:00
parent 299dc15803
commit 9f68c672d8

View File

@ -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)