I'm creating an Audio Recording app and have declared an empty array to store all the names of the files. 

```
var recordingTitles: [String] = []

```

When I launch the app, I have a function that checks what files are already stored in the File Manager and returns the number of files in order to display the correct number of cells in the collectionView. 

```
override func viewDidLoad() {
    super.viewDidLoad()
    getNumberOfRecordings()

}

// Get number of actual recording files stored in the File Manager Directory
func getNumberOfRecordings() {
    let directoryUrl = getDirectory()

    do {
        contentsOfFileManager = try myFileManager.contentsOfDirectory(at: directoryUrl, includingPropertiesForKeys: [URLResourceKey(rawValue: recordingsKey)], options: .skipsHiddenFiles)

    } catch let error {
        print(error.localizedDescription)
    }
    numberOfRecordings = contentsOfFileManager.count
}

```

I would like to obtain the names of the files and assign them to the "recordingTitles" array in order to display the correct title for each cell. I've tried reading over the Apple docs for [File Manager](https://developer.apple.com/documentation/foundation/filemanager) but haven't found a solution yet. Thank you in advance for your help!