<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/DataSource/gatherAnnotatedFileNames()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV10DataSourceO24gatherAnnotatedFileNames07TabularE00E5FrameVyKF"
  },
  "title" : "gatherAnnotatedFileNames()"
}
-->

# gatherAnnotatedFileNames()

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

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)