Python stwórz reż, gdy nie exsit from pathlib import Path Path("/my/directory").mkdir(parents=True, exist_ok=True)