<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileWrapper/init(symbolicLinkWithDestination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileWrapper(im)initSymbolicLinkWithDestination:"
  },
  "title" : "init(symbolicLinkWithDestination:)"
}
-->

# init(symbolicLinkWithDestination:)

Initializes the receiver as a symbolic-link file wrapper.

```
convenience init(symbolicLinkWithDestination path: String)
```

## Parameters

`path`

Pathname the receiver is to represent.

## Return Value

Initialized symbolic-link file wrapper referencing `node`.

## Discussion

The receiver is not associated to a file-system node until you save it using [`write(toFile:atomically:updateFilenames:)`](/documentation/Foundation/FileWrapper/write(toFile:atomically:updateFilenames:)). It’s also initialized with open permissions; anyone can read or write the disk representations it saves.

### Special Considerations

Beginning with OS X v10.6, the preferred method of referring to files is with a `file://` URL. Therefore, this method has been deprecated in favor of [`init(symbolicLinkWithDestinationURL:)`](/documentation/Foundation/FileWrapper/init(symbolicLinkWithDestinationURL:)).

## See Also

[`preferredFilename`](/documentation/Foundation/FileWrapper/preferredFilename)

The preferred filename for the file wrapper object.

[`filename`](/documentation/Foundation/FileWrapper/filename)

The filename of the file wrapper object

[`fileAttributes`](/documentation/Foundation/FileWrapper/fileAttributes)

A dictionary of file attributes.



---

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)