---
title: "init(symbolicLinkWithDestination:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/filewrapper/init(symboliclinkwithdestination:)"
---

# init(symbolicLinkWithDestination:)

Initializes the receiver as a symbolic-link file wrapper.

## Declaration

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

## Parameters

- `path`: Pathname the receiver is to represent.

## Return Value

Return Value Initialized symbolic-link file wrapper referencing node.

## Discussion

Discussion The receiver is not associated to a file-system node until you save it using 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:).

## See Also

### Related Documentation

- [preferredFilename](foundation/filewrapper/preferredfilename.md)
- [filename](foundation/filewrapper/filename.md)
- [fileAttributes](foundation/filewrapper/fileattributes.md)

### Creating File Wrappers

- [init(url:options:)](foundation/filewrapper/init(url:options:)-70161.md)
- [init(path:)](foundation/filewrapper/init(path:).md)
- [init(directoryWithFileWrappers:)](foundation/filewrapper/init(directorywithfilewrappers:).md)
- [init(regularFileWithContents:)](foundation/filewrapper/init(regularfilewithcontents:).md)
- [init(symbolicLinkWithDestinationURL:)](foundation/filewrapper/init(symboliclinkwithdestinationurl:).md)
- [init(serializedRepresentation:)](foundation/filewrapper/init(serializedrepresentation:).md)
