Static Propertyswift-nio 2.81.0NIOCore
defaultPermissions
FileHandle.swift:335static let defaultPermissions: mode_t
static let defaultPermissions: mode_t
s7NIOCore13NIOFileHandleC5FlagsV18defaultPermissionss6UInt32VvpZ
What are these?X6BE
import NIOCore
The core abstractions that make up SwiftNIO.
struct Flags
Flags
allows to specify additional flags to Mode
, such as permission for file creation.
final class NIOFileHandle
Deprecated. NIOFileHandle
is a handle to an open file descriptor.
typealias mode_t = __mode_t
static let `default`: NIOFileHandle.Flags
static func allowFileCreation(posixMode: NIOPOSIXFileMode = defaultPermissions) -> Flags
Allows file creation when opening file for writing. File owner is set to the effective user ID of the process.
static func posix(flags: CInt, mode: NIOPOSIXFileMode) -> Flags
Allows the specification of POSIX flags (e.g. O_TRUNC
) and mode (e.g. S_IWUSR
)