---
title: symbolicLinkDestination()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/filewrapper/symboliclinkdestination()
---

# symbolicLinkDestination()

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

## Declaration

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

## Return Value

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

## Discussion

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. This method raises NSInternalInconsistencyException if the receiver is not a symbolic-link file wrapper.

## See Also

### Accessing File-Wrapper Information

- [fileWrappers](foundation/filewrapper/filewrappers.md)
- [addFileWrapper(_:)](foundation/filewrapper/addfilewrapper(_:).md)
- [removeFileWrapper(_:)](foundation/filewrapper/removefilewrapper(_:).md)
- [addFile(withPath:)](foundation/filewrapper/addfile(withpath:).md)
- [addRegularFile(withContents:preferredFilename:)](foundation/filewrapper/addregularfile(withcontents:preferredfilename:).md)
- [addSymbolicLink(withDestination:preferredFilename:)](foundation/filewrapper/addsymboliclink(withdestination:preferredfilename:).md)
- [keyForChildFileWrapper(_:)](foundation/filewrapper/keyforchildfilewrapper(_:).md)
- [symbolicLinkDestinationURL](foundation/filewrapper/symboliclinkdestinationurl.md)
