public struct Flags
Flags allows to specify additional flags to
Mode, such as permission for file creation.
Allows file creation when opening file for writing. File owner is set to the effective user ID of the process.
public static func allowFileCreation(posixMode: mode_t = S_IWUSR | S_IRUSR | S_IRGRP | S_IROTH) -> Flags
file modeapplied when file is created. Default permissions are: read and write for fileowner, read for owners group and others.
Allows the specification of POSIX flags (e.g.
O_TRUNC) and mode (e.g.
public static func posix(flags: CInt, mode: mode_t) -> Flags
The POSIX open flags (the second parameter for
The POSIX mode (the third parameter for
NIOFileHandle.Modeequivalent to the given POSIX flags and mode.