Contents

contentAccessDateKey

The time at which the resource was most recently accessed.

Declaration

static let contentAccessDateKey: URLResourceKey

Discussion

This key corresponds to an NSDate value, or nil if the volume doesn’t support access dates.

When you set the contentAccessDateKey for a resource, also set contentModificationDateKey in the same call to the setResourceValues(_:) method. Otherwise, the file system may set the contentAccessDateKey value to the current contentModificationDateKey value.

See Also

Other resource keys