<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/ProgressKind/file",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@NSProgressKindFile"
  },
  "title" : "file"
}
-->

# file

The value that indicates that the progress is tracking a file operation.

```
static let file: ProgressKind
```

## Discussion

If you set this value for the progress [`kind`](/documentation/Foundation/Progress/kind), set a value in the user info dictionary for the [`fileOperationKindKey`](/documentation/Foundation/ProgressUserInfoKey/fileOperationKindKey).

The system assumes [`Progress`](/documentation/Foundation/Progress) of this kind uses bytes as the unit of work. The default implementation of [`localizedDescription`](/documentation/Foundation/Progress/localizedDescription) takes advantage of that to return more specific text than it does otherwise. If present, [`localizedDescription`](/documentation/Foundation/Progress/localizedDescription) uses the [`fileTotalCountKey`](/documentation/Foundation/ProgressUserInfoKey/fileTotalCountKey) and [`fileCompletedCountKey`](/documentation/Foundation/ProgressUserInfoKey/fileCompletedCountKey) keys in the [`userInfo`](/documentation/Foundation/Progress/userInfo) dictionary for the overall count of files.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)