1

Premiers éléments de l'étude

This commit is contained in:
2025-12-01 21:57:05 +01:00
commit 22b4dae0ba
46 changed files with 2595 additions and 0 deletions

8
lib/filesystem.py Normal file
View File

@@ -0,0 +1,8 @@
"""Fonctions utilitaires pour manipuler le système de fichiers."""
from pathlib import Path
def ensure_parent_dir(target_path: Path) -> None:
"""Crée le répertoire parent d'un chemin de fichier s'il est absent."""
target_path.parent.mkdir(parents=True, exist_ok=True)