---
title: FileFlags
framework: system
role: symbol
role_heading: Structure
path: system/fileflags
---

# FileFlags

File-specific flags found in the st_flags property of a stat struct or used as input to chflags().

## Declaration

```swift
@frozen struct FileFlags
```

## Overview

Overview note: Only available on Darwin, FreeBSD, and OpenBSD.

## Topics

### Initializers

- [init(rawValue:)](system/fileflags/init(rawvalue:).md)

### Instance Properties

- [rawValue](system/fileflags/rawvalue.md)

### Type Properties

- [archived](system/fileflags/archived.md)
- [compressed](system/fileflags/compressed.md)
- [dataVault](system/fileflags/datavault.md)
- [dataless](system/fileflags/dataless.md)
- [firmlink](system/fileflags/firmlink.md)
- [hidden](system/fileflags/hidden.md)
- [noDump](system/fileflags/nodump.md)
- [opaque](system/fileflags/opaque.md)
- [restricted](system/fileflags/restricted.md)
- [systemAppend](system/fileflags/systemappend.md)
- [systemImmutable](system/fileflags/systemimmutable.md)
- [systemNoUnlink](system/fileflags/systemnounlink.md)
- [tracked](system/fileflags/tracked.md)
- [userAppend](system/fileflags/userappend.md)
- [userImmutable](system/fileflags/userimmutable.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Hashable](swift/hashable.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
