Creates a directory ensuring that all nonexistent parent directories exist by creating them first.
If the directory already exists, this function does not throw an exception, unlike Path.createDirectory.
FileAlreadyExistsException - if there is already a file located by this path
(optional specific exception, some implementations may throw more general IOException).
UnsupportedOperationException - if the attributesarray contains an attribute that cannot be set atomically
when creating the directory.