Instance Property

isFileURL

A boolean value that determines whether the receiver is a file URL.

Declaration

var isFileURL: Bool { get }

Discussion

The property’s value is true if the receiver uses the file scheme, false otherwise. Both file path and file reference URLs are considered to be file URLs.

If this property’s value is true, then the receiver’s path property contains a suitable value for input into FileManager or NSPathUtilities.