OpenFlags

data class OpenFlags(val create: Boolean = false, val directory: Boolean = false, val exclude: Boolean = false, val truncate: Boolean = false)

Open flags used by openAt.

Constructors

Link copied to clipboard
constructor(create: Boolean = false, directory: Boolean = false, exclude: Boolean = false, truncate: Boolean = false)

Properties

Link copied to clipboard
val create: Boolean = false

Create file if it does not exist.

Link copied to clipboard
val directory: Boolean = false

Fail if not a directory

Link copied to clipboard
val exclude: Boolean = false

Fail if file already exists.

Link copied to clipboard
val truncate: Boolean = false

Truncate file to size 0.