Instance Method (Default implementation)swift-nio 2.84.0_NIOFileSystem
synchronize
FileHandle.swift:65- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func synchronize() async throws
func synchronize() async throws
s14_NIOFileSystem14_HasFileHandlePAAE11synchronizeyyYaKF
What are these?9WQFV
import _NIOFileSystem
A file system library for Swift.
protocol _HasFileHandle : FileHandleProtocol
Provides a FileHandle
.
func synchronize() async throws
Synchronize modified data and metadata to a permanent storage device.
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 replacePermissions(_ permissions: FilePermissions) async throws
func setTimes(lastAccess: FileInfo.Timespec?, lastDataModification: FileInfo.Timespec?) async throws
func updateValueForAttribute(_ bytes: some RandomAccessCollection<UInt8> & Sendable, 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