mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
feat: delete all files when deleting a backtest result
This commit is contained in:
parent
9e1af0db63
commit
549b0f8ef4
|
@ -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]):
|
||||
|
|
Loading…
Reference in New Issue
Block a user