ensure the backup folder will overwrite existing folders

This commit is contained in:
robcaulk 2023-03-25 14:12:06 +01:00
parent 630cdcb99f
commit 1fe58c3938

View File

@ -223,7 +223,8 @@ class FreqaiDataDrawer:
value.to_parquet(filename)
# create a backup
shutil.copytree(self.historic_predictions_folder, self.historic_predictions_bkp_folder)
shutil.copytree(self.historic_predictions_folder,
self.historic_predictions_bkp_folder, dirs_exist_ok=True)
def save_metric_tracker_to_disk(self):
"""