init(bytesWritten:itemAttributes:freeSpace:)
Creates a result for a file-writing operation.
Declaration
init?(bytesWritten actuallyWritten: Int, itemAttributes attributes: FSItem.Attributes, freeSpace: FSFreeSpace?)Parameters
- actuallyWritten:
The number of bytes actually written to the file. This should match the requested write length unless an error occurred.
- attributes:
The updated Attributes of the file after the write operation. Examples of attributes you might need to update are the updated file size and modification time.
- freeSpace:
An Fsfreespace instance populated with the volume’s updated free space. Passing a
nilfree space causes FSKit to calculate the free space when the operation is done, based on the volume’s Volumestatistics property. This behavior may lead to degraded performance.
Return Value
A populated result instance, or nil if validation fails.