---
title: gatherAnnotatedFileNames()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mlobjectdetector/datasource/gatherannotatedfilenames()
---

# gatherAnnotatedFileNames()

Processes the data source and returns a data frame that contains file URLs and annotations.

## Declaration

```swift
func gatherAnnotatedFileNames() throws -> DataFrame
```

## Discussion

Discussion This method collects file names from the filesystem if necessary. If the data source is already in table format it renames the columns to the default column names.
