Required Instance Methodswift-nio 2.72.0_NIOFileSystem

    resize(to:)

    Resizes a file to the given size.

    FileHandleProtocol.swift:466
    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.

    Other requirements

    Instance members