Required Instance Methodtuist.filesystem 0.7.9FileSystem

writeAsPlist(_:at:encoder:)

Given an Encodable instance, it encodes it as a Plist, and writes it at the given path.

FileSystem.swift:189
func writeAsPlist<T>(_ item: T, at: AbsolutePath, encoder: PropertyListEncoder) async throws where T : Encodable

Parameters

item

Item to be encoded as Plist.

at

Path at which the Plist will be written.

encoder

The PropertyListEncoder instance to encode the item.