---
title: "init(parentItemIdentifier:filename:)"
framework: fileprovider
role: symbol
role_heading: Initializer
path: "fileprovider/nsfileproviderknownfolderlocations/location/init(parentitemidentifier:filename:)"
---

# init(parentItemIdentifier:filename:)

Initialize a location with the filename of the folder in a specified parent.

## Declaration

```swift
init(parentItemIdentifier: NSFileProviderItemIdentifier, filename: String)
```

## Discussion

Discussion When replicating a known folder the system will reuse a folder located at the specified filename within the parent if one exists, or create a new item at this location if none exists yet.
