<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/DataSource/gatherAnnotatedFileNames()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV10DataSourceO24gatherAnnotatedFileNames07TabularE00E5FrameVSgyKF"
  },
  "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. This method returns nil if the data source
contains key points.

---

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)