<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileWrapper/ReadingOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSFileWrapperReadingOptions"
  },
  "title" : "FileWrapper.ReadingOptions"
}
-->

# FileWrapper.ReadingOptions

Reading options that can be set by the [`init(url:options:)`](/documentation/Foundation/FileWrapper/init(url:options:)-70161) and [`read(from:options:)`](/documentation/Foundation/FileWrapper/read(from:options:)) methods.

```
struct ReadingOptions
```

## Overview

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.

## Topics

### Constants

[`immediate`](/documentation/Foundation/FileWrapper/ReadingOptions/immediate)

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

[`withoutMapping`](/documentation/Foundation/FileWrapper/ReadingOptions/withoutMapping)

Whether file mapping for regular file wrappers is disallowed.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)