createDirectories
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.
Since Kotlin
1.5Parameters
attributes
an optional list of file attributes to set atomically when creating the directory.
See also
Throws
if there is already a file located by this path (optional specific exception, some implementations may throw more general IOException).
if an I/O error occurs.
if the attributes array contains an attribute that cannot be set atomically when creating the directory.