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.get_logs_to_remove(log_dir, cut_date=None)[source]ΒΆ
Return all files that are older than cut_date according to their name.
- Parameters:
log_dir : str
path to the directory to clean.
cut_date : str or None
date from before which files are returned. If None, return files than are older than one year old. Should be formatted %Y-%m-%d (e.g. 2024-08-06).
Follow us