Required Instance Methodswift-nio 2.84.0_NIOFileSystem

resize(to:)

Resizes a file to the given size.

FileHandleProtocol.swift:471
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
func resize(to size: ByteCount) async throws

Parameters

size

The number of bytes to resize the file to as a ByteCount.