A Boolean value that indicates whether the receiver represents an absolute path.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
true if the receiver (if interpreted as a path) represents an absolute path, otherwise
See String Programming Guide for more information on paths.
Note that this method only works with file paths (not, for example, string representations of URLs). The method does not check the filesystem for the existence of the path (use
file or similar methods in
File for that task).