Reading options that can be set by the init(url:options:) and read(from:options:) methods.


struct ReadingOptions


You can use the NSFileWrapperReadingImmediate and NSFileWrapperReadingWithoutMapping reading options together to take an exact snapshot of a file-system hierarchy that is safe from all errors (including the ones mentioned above) once reading has succeeded. If reading with both options succeeds, then subsequent invocations of the methods listed in the comment for the NSFileWrapperReadingImmediate reading option to the receiver and all its descendant file wrappers will never fail. However, note that reading with both options together is expensive in terms of both I/O and memory for large files, or directories containing large files, or even directories containing many small files.



static var immediate: FileWrapper.ReadingOptions

The option to read files immediately after creating a file wrapper.

static var withoutMapping: FileWrapper.ReadingOptions

Whether file mapping for regular file wrappers is disallowed.


Conforms To