Scoop API

scoop:scoop.asyncio:0.1.0

TemporaryFile

struct TemporaryFile

source · line 12
public
public struct TemporaryFile(val path: Path, val file: AsyncFile) : AsyncCloseable

A newly created temporary path paired with its open asynchronous file. Closing the handle does not delete the path.

function close

source · line 16
public
public override suspend fun close(): Unit
  • Overrides close · AsyncCloseable

Closes the file handle while leaving the temporary path in the filesystem.