You've already forked etude_lego_jurassic_world
Premiers éléments de l'étude
This commit is contained in:
8
lib/filesystem.py
Normal file
8
lib/filesystem.py
Normal 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)
|
||||
Reference in New Issue
Block a user