the unix mkdir command has a -p option that will create all the directories if they don't already exist. That's probably just as efficient as checking if the directory already exists.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.