Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It returns an error if the directory already exists (same as in Python)


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

os.makedirs(path, exist_ok=True)




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: