createTempDirectory
Creates a new directory in the default temp directory, using the given prefix to generate its name.
Since Kotlin
1.5Return
the path to the newly created directory that did not exist before.
Parameters
an optional list of file attributes to set atomically when creating the directory.
See also
Throws
if the array contains an attribute that cannot be set atomically when creating the directory.
Creates a new directory in the specified directory, using the given prefix to generate its name.
Since Kotlin
1.5Return
the path to the newly created directory that did not exist before.
Parameters
the parent directory in which to create a new directory. It can be null
, in that case the new directory is created in the default temp directory.
an optional list of file attributes to set atomically when creating the directory.
See also
Throws
if the array contains an attribute that cannot be set atomically when creating the directory.