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