Menu

pycaravel: This module is designed to simplify continuous integration (CI) of data from multiple projects.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

caravel.utils.clean_logs_dir(log_dir, cut_date=None)[source]ΒΆ

Remove all files that are older than cut_date.

Parameters:

log_dir : str

path to the directory to clean.

cut_date:

date from before which files are suppressed. If None, remove files than are older than one year old. Should be formatted %Y-%m-%d (e.g. 2024-08-06).

Follow us

© 2025, Antoine Grigis