init(bytesRead:itemAttributes:)
Creates a result for a file-reading operation.
Declaration
init?(bytesRead actuallyRead: Int, itemAttributes attributes: FSItem.Attributes)Parameters
- actuallyRead:
The number of bytes actually read from the file. This may be less than the requested length if the end of file was reached.
- attributes:
The updated Attributes of the file after the read operation (e.g., updated access time).
Return Value
A populated result instance, or nil if validation fails.