Hacker News new | ask | show | jobs
by okasaki 1298 days ago
It returns an error if the directory already exists (same as in Python)
1 comments

While we're on the topic, in Python there's a nice way to deal with this:

os.makedirs(path, exist_ok=True)