init(contentsOf:maximumSizeAllowed:)

Reads the contents of the file at the path using FileSystem.

ArraySlice+FileSystem.swift:45
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
init(contentsOf path: FilePath, maximumSizeAllowed: ByteCount) async throws

Parameters

path

The path of the file to read.

maximumSizeAllowed

The maximum size of file which can be read, as a ByteCount.