Contents

init(attributes:freeSpace:)

Creates a result for an attribute-setting operation.

Declaration

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

Parameters

  • attributes:

    The updated Attributes for the item.

  • 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 set-attributes result