Make sure that the given directory exists (and create parent directories as necessary).
See Implementation
Make sure that the given directory exists (and create parent directories as necessary).