diff --git a/recipes/recipe_modules/bot_update/resources/bot_update.py b/recipes/recipe_modules/bot_update/resources/bot_update.py index 3e0766cbb7..b438e658fe 100755 --- a/recipes/recipe_modules/bot_update/resources/bot_update.py +++ b/recipes/recipe_modules/bot_update/resources/bot_update.py @@ -366,8 +366,8 @@ def remove(target, cleanup_dir): allfiles = os.listdir(target) for f in allfiles: target_path = os.path.join(target, f) - dst_path = os.path.join(destination, f) - os.rename(target_path, dst_path) + dst_path = os.path.join(dest, f) + os.renames(target_path, dst_path) except Exception as e: print('Error renaming %s to %s: %s' % (target, dest, str(e))) raise