---
title: "stat(retryOnInterrupt:)"
framework: system
role: symbol
role_heading: Instance Method
path: "system/filedescriptor/stat(retryoninterrupt:)"
---

# stat(retryOnInterrupt:)

Creates a Stat struct for the file referenced by this FileDescriptor.

## Declaration

```swift
func stat(retryOnInterrupt: Bool = true) throws(Errno) -> Stat
```

## Discussion

Discussion The corresponding C function is fstat().
