<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEByteSource/relatedFileNamesInSameDirectory",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)MEByteSource(py)relatedFileNamesInSameDirectory"
  },
  "title" : "relatedFileNamesInSameDirectory"
}
-->

# relatedFileNamesInSameDirectory

An array of related file names in the parent directory of the byte source file.

```
var relatedFileNamesInSameDirectory: [String] { get }
```

## Discussion

The array of related files within the [`MEByteSource`](/documentation/MediaExtension/MEByteSource)’s parent directory that are accessible to the [`MEByteSource`](/documentation/MediaExtension/MEByteSource). Only the relative file names are returned, not the paths. Only files with file extensions listed in the [`kMEFormatReaderFileNameExtensionArrayKey`](/documentation/MediaExtension/kMEFormatReaderFileNameExtensionArrayKey) array in the format reader property list will be returned. If no related files are available, returns an empty array.

---

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)