struct TemporaryFile
source · line 12public
public struct TemporaryFile(val path: Path, val file: AsyncFile) : AsyncCloseable
- Supertype
AsyncCloseable
A newly created temporary path paired with its open asynchronous file. Closing the handle does not delete the path.
field file
source · line 12public
val file: AsyncFile
constructor constructor
source · line 12public
constructor(val path: Path, val file: AsyncFile)
parameter file
source · line 12public
val file: AsyncFile
parameter path
source · line 12public
val path: Path
field path
source · line 12public
val path: Path
function close
source · line 16public
public override suspend fun close(): Unit
- Overrides
close· AsyncCloseable
Closes the file handle while leaving the temporary path in the filesystem.
function equals
source · line 12publiccompiler-derived
operator fun equals(other: TemporaryFile): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Path, AsyncFile.