Instance Method (Default implementation)swift-nio 2.72.0_NIOFileSystem
addPermissions(_:)
FileHandle.swift:40- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func addPermissions(_ permissions: FilePermissions) async throws -> FilePermissions
Implements
func addPermissions(FilePermissions
) async throws -> FilePermissions Adds permissions to the existing permissions set for the file.
Other members in extension
Instance members
func attributeNames(
) async throws -> [String] func close(
) async throws func detachUnsafeFileDescriptor(
) throws -> FileDescriptor func info(
) async throws -> FileInfo func removePermissions(FilePermissions
) async throws -> FilePermissions func removeValueForAttribute(String
) async throws func replacePermissions(FilePermissions
) async throws func setTimes(lastAccess: FileInfo.Timespec?, lastDataModification: FileInfo.Timespec?
) async throws func synchronize(
) async throws func updateValueForAttribute(some (Sendable & RandomAccessCollection<UInt8>), attribute: String
) async throws func valueForAttribute(String
) async throws -> [UInt8] func withUnsafeDescriptor<R>(@escaping (FileDescriptor) throws -> R
) async throws -> R