<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLHandPoseClassifier/DataSource/labeledDirectories(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML20MLHandPoseClassifierV10DataSourceO18labeledDirectoriesyAE10Foundation3URLV_tcAEmF"
  },
  "title" : "MLHandPoseClassifier.DataSource.labeledDirectories(at:)"
}
-->

# MLHandPoseClassifier.DataSource.labeledDirectories(at:)

Creates a data source from a folder with subfolders that each
contain images of a hand pose.

```
case labeledDirectories(at: URL)
```

## Discussion

- at: The URL to a folder in the file system that contains folders
  of hand pose images. The data source uses the name of each folder as
  the classification label for the hand pose images it contains.

---

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)