suspend fun FileSystem.createTempFileAwait(prefix: String, suffix: String): String
Creates a new file in the default temporary-file directory, using the given prefix and suffix to generate its name, asynchronously.
prefix
- the prefix string to be used in generating the directory's name; may be null
suffix
- the suffix string to be used in generating the file's name; may be null, in which case ".tmp" is used
handler
- the handler that will be called on completion
Returna
reference to this, so the API can be used fluently *
suspend fun FileSystem.createTempFileAwait(prefix: String, suffix: String, perms: String): String
Creates a new file in the directory provided by the path dir, using the given prefix and suffix to generate its name, asynchronously.
prefix
- the prefix string to be used in generating the directory's name; may be null
suffix
- the suffix string to be used in generating the file's name; may be null, in which case ".tmp" is used
handler
- the handler that will be called on completion
Returna
reference to this, so the API can be used fluently *
suspend fun FileSystem.createTempFileAwait(dir: String, prefix: String, suffix: String, perms: String): String
Creates a new file in the directory provided by the path dir, using the given prefix and suffix to generate its name, asynchronously.
dir
- the path to directory in which to create the directory
prefix
- the prefix string to be used in generating the directory's name; may be null
suffix
- the suffix string to be used in generating the file's name; may be null, in which case ".tmp" is used
perms
- the permissions string
handler
- the handler that will be called on completion
Returna
reference to this, so the API can be used fluently *