Contents

fileURL

URL to the file on disk, if any. If the file isn’t stored on disk, access the contents using the data property.

Declaration

var fileURL: URL? { get }

Discussion

If the file was created elsewhere on the system, make sure to surround access to file contents with startAccessingSecurityScopedResource() and stopAccessingSecurityScopedResource().

See Also

Getting the file information