Creates a directory at the specified location.
This function will fail if the directory already exists. Missing parent folders will be created automatically.