Contents

init(linkName:linkAttributes:directoryAttributes:freeSpace:)

Creates a result for a link-creation operation.

Declaration

init?(linkName: FSFileName, linkAttributes: FSItem.Attributes, directoryAttributes: FSItem.Attributes, freeSpace: FSFreeSpace?)

Parameters

  • linkName:

    The name of the newly-created hard link.

  • linkAttributes:

    The Attributes of the linked item (the target of the hard link).

  • directoryAttributes:

    The updated Attributes of the parent directory.

  • 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 create-link result