There\'s the script to re-create folder:
# Remove folder (if exists) with all files if os.path.isdir(str(os.path.realpath(\'..\') + \"\\\\my_folder\")):
For me it worked in this way:
while os.path.isdir (your_path): shutil.rmtree (your_path, ignore_errors=True) os.makedirs (your_path)