🎃 Valiukas

jump to main content

python: create folder if not exists

Oct 14, 2022

From stackoverflow:

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