Required Instance Methodswift-nio 2.84.0_NIOFileSystem

addPermissions(_:)

Adds permissions to the existing permissions set for the file.

FileHandleProtocol.swift:62
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
@discardableResult func addPermissions(_ permissions: FilePermissions) async throws -> FilePermissions

Parameters

permissions

The permissions to add to the file.

Returns

The updated permissions.

This is equivalent to retrieving the permissions, merging them with the provided permissions and then replacing the permissions on the file.