Open
data class Open(val path: String, val baseDirectory: BaseDirectory = BaseDirectory.CurrentWorkingDirectory, val flags: OpenFileFlags, val mode: FileMode = FileMode(0U))(source)
Open or create a file.
The path to the file is specified by the path. If is relative, it will be resolved using the base directory specified by the baseDirectory parameter.
The flags argument may indicate the file is to be created if it does not exist (by specifying the Fcntl.O_CREAT flag). In this case, file is created with mode mode.
Constructors
Link copied to clipboard
constructor(path: String, baseDirectory: BaseDirectory = BaseDirectory.CurrentWorkingDirectory, flags: OpenFileFlags, mode: FileMode = FileMode(0U))