<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/FileFlags/dataless",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System9FileFlagsV8datalessACvpZ"
  },
  "title" : "dataless"
}
-->

# dataless

File is a dataless placeholder (content is stored remotely).

```
static var dataless: FileFlags { get }
```

## Discussion

The system will attempt to materialize the file when accessed according to
the dataless file materialization policy of the accessing thread or process.
See `getiopolicy_np(3)`.

The corresponding C constant is `SF_DATALESS`.

> Note: This flag is read-only. Attempting to change it will result in undefined behavior.

---

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)