python créer dir lorsqu'il n'est pas exsit

from pathlib import Path
Path("/my/directory").mkdir(parents=True, exist_ok=True)