Contents

init(newName:renamedItemAttributes:sourceDirectoryAttributes:destinationDirectoryAttributes:overItemAttributes:freeSpace:)

Creates a result for an item-renaming operation.

Declaration

init?(newName: FSFileName, renamedItemAttributes: FSItem.Attributes, sourceDirectoryAttributes: FSItem.Attributes, destinationDirectoryAttributes: FSItem.Attributes, overItemAttributes: FSItem.Attributes?, freeSpace: FSFreeSpace?)

Parameters

  • newName:

    The updated item name as it exists within the destination directory.

  • renamedItemAttributes:

    The Attributes of the renamed item.

  • sourceDirectoryAttributes:

    The updated Attributes of the source directory.

  • destinationDirectoryAttributes:

    The updated Attributes of the destination directory.

  • overItemAttributes:

    The Attributes of the overwritten item, if any. Pass nil if the action didn’t overwrite any 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 rename result