Required Instance Methodtuist.filesystem 0.7.9FileSystem

writeAsPlist(_:at:encoder:options:)

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

FileSystem.swift:197
func writeAsPlist<T>(_ item: T, at: AbsolutePath, encoder: PropertyListEncoder, options: Set<WritePlistOptions>) 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.

options

Options to configure the writing of the plist file.