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

# init(symbolicLinkWithDestinationURL:)

Initializes the receiver as a symbolic-link file wrapper that links to a specified file.

## Declaration

```swift
init(symbolicLinkWithDestinationURL url: URL)
```

## Parameters

- `url`: URL of the file the file wrapper is to reference.

## Return Value

Return Value Initialized symbolic-link file wrapper referencing url.

## Discussion

Discussion The file wrapper is not associated with a file-system node until you save it using write(to:options:originalContentsURL:). The file wrapper is initialized with open permissions: anyone can modify or read the file reference. .

## 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(symbolicLinkWithDestination:)](foundation/filewrapper/init(symboliclinkwithdestination:).md)
- [init(serializedRepresentation:)](foundation/filewrapper/init(serializedrepresentation:).md)
