---
title: Stat
framework: system
role: symbol
role_heading: Structure
path: system/stat
---

# Stat

A Swift wrapper of the C stat struct.

## Declaration

```swift
@frozen struct Stat
```

## Overview

Overview note: Only available on Unix-like platforms.

## Topics

### Structures

- [Stat.Flags](system/stat/flags-swift.struct.md)

### Initializers

- [init(_:flags:retryOnInterrupt:)](system/stat/init(_:flags:retryoninterrupt:)-349q0.md)
- [init(_:flags:retryOnInterrupt:)](system/stat/init(_:flags:retryoninterrupt:)-9o008.md)
- [init(_:followTargetSymlink:retryOnInterrupt:)](system/stat/init(_:followtargetsymlink:retryoninterrupt:)-2szq8.md)
- [init(_:followTargetSymlink:retryOnInterrupt:)](system/stat/init(_:followtargetsymlink:retryoninterrupt:)-4apli.md)
- [init(_:relativeTo:flags:retryOnInterrupt:)](system/stat/init(_:relativeto:flags:retryoninterrupt:)-5rm1x.md)
- [init(_:relativeTo:flags:retryOnInterrupt:)](system/stat/init(_:relativeto:flags:retryoninterrupt:)-q6e4.md)
- [init(_:retryOnInterrupt:)](system/stat/init(_:retryoninterrupt:).md)
- [init(rawValue:)](system/stat/init(rawvalue:).md)

### Instance Properties

- [blocksAllocated](system/stat/blocksallocated.md)
- [deviceID](system/stat/deviceid.md)
- [flags](system/stat/flags-swift.property.md)
- [generationNumber](system/stat/generationnumber.md)
- [groupID](system/stat/groupid.md)
- [inode](system/stat/inode.md)
- [linkCount](system/stat/linkcount.md)
- [mode](system/stat/mode.md)
- [permissions](system/stat/permissions.md)
- [preferredIOBlockSize](system/stat/preferredioblocksize.md)
- [rawValue](system/stat/rawvalue.md)
- [size](system/stat/size.md)
- [sizeAllocated](system/stat/sizeallocated.md)
- [specialDeviceID](system/stat/specialdeviceid.md)
- [st_atim](system/stat/st_atim.md)
- [st_birthtim](system/stat/st_birthtim.md)
- [st_ctim](system/stat/st_ctim.md)
- [st_mtim](system/stat/st_mtim.md)
- [type](system/stat/type.md)
- [userID](system/stat/userid.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
