Instance Method (Default implementation)swift-nio 2.81.0_NIOFileSystem
replacePermissions(_:)
FileHandle.swift:34- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func replacePermissions(_ permissions: FilePermissions) async throws
func replacePermissions(_ permissions: FilePermissions) async throws
s14_NIOFileSystem14_HasFileHandlePAAE18replacePermissionsyy0B7Package0dG0VYaKF
What are these?1LT3J
import _NIOFileSystem
A file system library for Swift.
protocol _HasFileHandle : FileHandleProtocol
Provides a FileHandle
.
@frozen struct FilePermissions
The access permissions for a file.
func replacePermissions(_ permissions: FilePermissions) async throws
Replaces the permissions set on the file.
func addPermissions(_ permissions: FilePermissions) async throws -> FilePermissions
func attributeNames() async throws -> [String]
func close() async throws
func detachUnsafeFileDescriptor() throws -> FileDescriptor
func info() async throws -> FileInfo
func removePermissions(_ permissions: FilePermissions) async throws -> FilePermissions
func removeValueForAttribute(_ name: String) async throws
func setTimes(lastAccess: FileInfo.Timespec?, lastDataModification: FileInfo.Timespec?) async throws
func synchronize() async throws
func updateValueForAttribute(_ bytes: some (Sendable & RandomAccessCollection<UInt8>), attribute name: String) async throws
func valueForAttribute(_ name: String) async throws -> [UInt8]
func withUnsafeDescriptor<R>(_ execute: @escaping (FileDescriptor) throws -> R) async throws -> R where R : Sendable