I recently Super Searched on this topic and found "mkdir -p" equivalent?. That should help :)
In reply to Re: Making directories from path by b10m in thread Making directories from path by Nelly