Returns whether the promised item can be reached.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The error that occurred when the promised item could not be reached.
true if the promised item is reachable; otherwise,
This method behaves identically to
check, but works on promised items. A promised item is not guaranteed to have its contents in the file system until you use a file coordinator to perform a coordinated read on its URL, which causes the contents to be downloaded or otherwise generated. Promised item URLs are returned by various APIs, including:
The contents of the directory returned by the file manager’s
Ubiquitous Container Identifier:
You must use this method instead of
check for any URLs returned by these methods.