---
title: fileAttributes
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/filewrapper/fileattributes
---

# fileAttributes

A dictionary of file attributes.

## Declaration

```swift
var fileAttributes: [String : Any] { get set }
```

## Discussion

Discussion The file attributes’ dictionary is the same format as that returned by attributesOfItem(atPath:) (NSFileManager).

## See Also

### Accessing Files

- [filename](foundation/filewrapper/filename.md)
- [preferredFilename](foundation/filewrapper/preferredfilename.md)
- [regularFileContents](foundation/filewrapper/regularfilecontents.md)
