The unique identifier of the resource’s volume, returned as an id
(read-only).
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
static let volumeIdentifierKey: URLResource Key
Discussion
This identifier can be used with the is
method to determine whether two file system resources are on the same volume.
The value of this identifier is not persistent across system restarts.