Ensures that the directory with the specified path exists.
The full path of the directory.
The octal file mode to use if the directory is created.