regularFileContents
The contents of the file-system node associated with a regular-file file wrapper.
Declaration
var regularFileContents: Data? { get }Discussion
This property may contain nil if the user modifies the file after you call read(from:options:) or init(url:options:) but before FileWrapper has read the contents of the file. Use the immediate reading option to reduce the likelihood of that problem.
Special Considerations
This property raises NSInternalInconsistencyException if the file wrapper object is not a regular-file file wrapper.