From e28a2bdc67a1c48896b76ff6b4c50d0ab937146a Mon Sep 17 00:00:00 2001 From: zimmersandro Date: Thu, 19 Mar 2026 11:58:22 +0100 Subject: [PATCH] feat: pathlib exercise --- .../files_and_path/pathlib_exercise/pathlib_exercise.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/tutorial/files_and_path/pathlib_exercise/pathlib_exercise.py diff --git a/src/tutorial/files_and_path/pathlib_exercise/pathlib_exercise.py b/src/tutorial/files_and_path/pathlib_exercise/pathlib_exercise.py new file mode 100644 index 0000000..a848e49 --- /dev/null +++ b/src/tutorial/files_and_path/pathlib_exercise/pathlib_exercise.py @@ -0,0 +1,6 @@ +from pathlib import Path + +base_dir = Path("data") +file_path = base_dir / "raw" / "processed.json" + +file_path.mkdir(parents=True, exist_ok=True)