Contents

init(newItem:newItemName:newItemAttributes:directoryAttributes:freeSpace:)

Creates a result for an item-creation operation.

Declaration

init?(newItem: FSItem, newItemName: FSFileName, newItemAttributes: FSItem.Attributes, directoryAttributes: FSItem.Attributes, freeSpace: FSFreeSpace?)

Parameters

  • newItem:

    The newly-created Fsitem.

  • newItemName:

    The name of the newly-created item as it exists within the file system.

  • newItemAttributes:

    The Attributes of the newly-created item.

  • 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 completes, 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-item result