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

# symbolicLinkDestination()

Provides the pathname referenced by the file wrapper object, which must be a symbolic-link file wrapper.

```
func symbolicLinkDestination() -> String
```

## Return Value

Pathname the file wrapper references (the destination of the symbolic link the file wrapper represents).

## Discussion

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 [`symbolicLinkDestinationURL`](/documentation/Foundation/FileWrapper/symbolicLinkDestinationURL).

This method raises `NSInternalInconsistencyException` if the receiver is not a symbolic-link file wrapper.

---

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)