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\")):
It happens because you are not checking if you have permissions to open that path. You need to change the permissions on those folders.