# Zip Files

Compresses multiple files or a PAWFileData list into a single ZIP archive.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePaths` | `List<String>` | ✅Yes\*   | List of file paths to compress |
| `DataFiles` | `List<PAWFileData>` | ✅Yes\*   | List of file data (in-memory) |
| `Password` | `SecureString` | ❌No      | ZIP password |
| `ZipFilePath` | `String` | ❌No      | Path of the ZIP file to be created |

\*FilePath and DataFile are alternatives to each other (OverloadGroup).


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsZipFilesSuccessful` | `Boolean` | Whether the operation succeeded |
| `ZipFilesMessage` | `String` | Result message |
| `ZipFilesResult` | `Byte[]` | Compressed ZIP data (byte array) |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |