<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSCreateLinkResult/init(linkName:linkAttributes:directoryAttributes:freeSpace:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSCreateLinkResult(im)initWithLinkName:linkAttributes:directoryAttributes:freeSpace:"
  },
  "title" : "init(linkName:linkAttributes:directoryAttributes:freeSpace:)"
}
-->

# init(linkName:linkAttributes:directoryAttributes:freeSpace:)

Creates a result for a link-creation operation.

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

## Parameters

`linkName`

The name of the newly-created hard link.

`linkAttributes`

The [`FSItem.Attributes`](/documentation/FSKit/FSItem/Attributes) of the linked item (the target of the hard link).

`directoryAttributes`

The updated [`FSItem.Attributes`](/documentation/FSKit/FSItem/Attributes) of the parent directory.

`freeSpace`

An [`FSFreeSpace`](/documentation/FSKit/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`](/documentation/FSKit/FSVolume/Handler/volumeStatistics) property. This behavior may lead to degraded performance.

## Return Value

A populated result instance, or `nil` if validation fails.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)