Contents

init(bytesAllocated:itemAttributes:freeSpace:)

Creates a result for a preallocate operation.

Declaration

init?(bytesAllocated: Int, itemAttributes attributes: FSItem.Attributes, freeSpace: FSFreeSpace?)

Parameters

  • bytesAllocated:

    The number of bytes actually allocated for the file during the preallocation operation.

  • attributes:

    The updated Attributes of the file after the preallocation operation.

  • freeSpace:

    An Fsfreespace instance populated with the volume’s updated free space. Passing a nil free 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.

See Also

Creating a preallocate result