---
title: subdirectory
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresource/subdirectory
---

# subdirectory

The subdirectory, if any, of the resource.

## Declaration

```swift
let subdirectory: String?
```

## See Also

### Accessing resource properties

- [bundle](foundation/urlresource/bundle.md)
- [name](foundation/urlresource/name.md)
- [locale](foundation/urlresource/locale.md)
