feat(scripts): Add cpu and mem merge script

This commit is contained in:
2026-04-08 10:26:57 +01:00
parent c120418cae
commit 0c03bcbcfe
3 changed files with 215 additions and 2 deletions
+2 -2
View File
@@ -5,7 +5,6 @@ Extracts metadata from filenames and directory structure.
"""
import csv
import os
from pathlib import Path
from dateutil import parser as date_parser
import argparse
@@ -63,7 +62,8 @@ def find_csv_files(input_dir: Path) -> list:
"""Find all non-backup CSV files."""
files = []
for csv_path in input_dir.rglob('*.csv'):
if '.bak' in csv_path.name:
name = csv_path.name.lower()
if '.bak' in name or name.endswith('.cpu.csv') or name.endswith('.mem.csv'):
continue
files.append(csv_path)
return sorted(files)