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

# stat(flags:retryOnInterrupt:)

Creates a Stat struct for the file referenced by this FilePath using the given Flags.

## Declaration

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

## Discussion

Discussion If path is relative, it is resolved against the current working directory. The corresponding C function is fstatat().
