mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
feat: delete all files when deleting a backtest result
This commit is contained in:
@@ -244,11 +244,10 @@ def delete_backtest_result(file_abs: Path):
|
||||
"""
|
||||
# *.meta.json
|
||||
logger.info(f"Deleting backtest result file: {file_abs.name}")
|
||||
file_abs_meta = file_abs.with_suffix(".meta.json")
|
||||
file_abs_market_change = file_abs.with_name(file_abs.stem + "_market_change.feather")
|
||||
file_abs.unlink()
|
||||
file_abs_meta.unlink()
|
||||
file_abs_market_change.unlink()
|
||||
|
||||
for file in file_abs.parent.glob(f"{file_abs.stem}*"):
|
||||
logger.info(f"Deleting file: {file}")
|
||||
file.unlink()
|
||||
|
||||
|
||||
def update_backtest_metadata(filename: Path, strategy: str, content: dict[str, Any]):
|
||||
|
||||
Reference in New Issue
Block a user