<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Progress/FileOperationKind-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSProgressFileOperationKind"
  },
  "title" : "Progress.FileOperationKind"
}
-->

# Progress.FileOperationKind

The kind of file operation.

```
struct FileOperationKind
```

## Discussion

When tracking file operations with the progress [`kind`](/documentation/Foundation/Progress/kind) set to [`file`](/documentation/Foundation/ProgressKind/file), provide a value for the [`fileOperationKindKey`](/documentation/Foundation/ProgressUserInfoKey/fileOperationKindKey) in the user info dictionary.

To specify the kind of file operation, provide one of the following values:

- [`copying`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/copying)
- [`decompressingAfterDownloading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/decompressingAfterDownloading)
- [`downloading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/downloading)
- [`uploading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/uploading)
- [`receiving`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/receiving)

## Topics

### Creating Kinds of File Operation

[`init(_:)`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/init(_:))

Creates a new kind of file operation using the specified string.

[`init(rawValue:)`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/init(rawValue:))

Creates a new kind of file operation using the raw value of a string you specify.

### Recognizing Kinds of File Operations

[`NSProgressFileOperationKindCopying`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/copying)

The progress is tracking the copying of a file from source to destination.

[`NSProgressFileOperationKindDecompressingAfterDownloading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/decompressingAfterDownloading)

The progress is tracking file decompression after a download.

[`NSProgressFileOperationKindDownloading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/downloading)

The progress is tracking a file download operation.

[`NSProgressFileOperationKindUploading`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/uploading)

The progress is tracking a file upload operation.

[`NSProgressFileOperationKindReceiving`](/documentation/Foundation/Progress/FileOperationKind-swift.struct/receiving)

The progress is tracking the receipt of a file from another source.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)