---
title: FileManager.URLRelationship
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/filemanager/urlrelationship
---

# FileManager.URLRelationship

Constants indicating the relationship between a directory and an item.

## Declaration

```swift
enum URLRelationship
```

## Topics

### URL Relationships

- [FileManager.URLRelationship.contains](foundation/filemanager/urlrelationship/contains.md)
- [FileManager.URLRelationship.same](foundation/filemanager/urlrelationship/same.md)
- [FileManager.URLRelationship.other](foundation/filemanager/urlrelationship/other.md)

### Initializers

- [init(rawValue:)](foundation/filemanager/urlrelationship/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting the relationship between items

- [getRelationship(_:ofDirectoryAt:toItemAt:)](foundation/filemanager/getrelationship(_:ofdirectoryat:toitemat:).md)
- [getRelationship(_:of:in:toItemAt:)](foundation/filemanager/getrelationship(_:of:in:toitemat:).md)
