> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1io/classpackmanlib_1_1io_1_1_archive_writer.md).

# ArchiveWriter

[Data Structures](#nested-classes) | [Static Public Member Functions](#pub-static-methods)

|                 |                                                                                                                                                                                                                                      |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Data Structures |                                                                                                                                                                                                                                      |
| class           | [ModifiedArchiveLister](/adk-5.0-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1io/classpackmanlib_1_1io_1_1_archive_writer/classpackmanlib_1_1io_1_1_archive_writer_1_1_modified_archive_lister.md) |

|                                |                                                                                                                                                          |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Static Public Member Functions |                                                                                                                                                          |
| def                            | [write\_file](#af9b3f577c2c055f2f1d8168032f83265) (archive, path, fix=True, force\_resign=True)                                                          |
|                                | <p>Write archive to file by recursively walking through the in-memory node tree. <a href="#af9b3f577c2c055f2f1d8168032f83265">More...</a><br></p>        |
| def                            | [write\_fileobj](#a2acb76b599b02849510c2e5778053ad8) (archive, fileobj, fix=True, force\_resign=True)                                                    |
|                                | <p>Write archive to file object by recursively walking through the in-memory node tree. <a href="#a2acb76b599b02849510c2e5778053ad8">More...</a><br></p> |
| def                            | [write\_pickled\_file](#a9dc1a2b812a7bef1aed7bd4b16a5d4af) (archive, path, gz=False)                                                                     |
|                                | <p>Write pickled file. <a href="#a9dc1a2b812a7bef1aed7bd4b16a5d4af">More...</a><br></p>                                                                  |

### MemberFunction Documentation <a href="#member-function-documentation" id="member-function-documentation"></a>

### write\_file() <a href="#af9b3f577c2c055f2f1d8168032f83265" id="af9b3f577c2c055f2f1d8168032f83265"></a>

def write\_file

static

Write archive to file by recursively walking through the in-memory node tree.

**Parameters**

**archive** archive node **path** path to the file to write to **fix** fix archive before writing **force\_resign** True will for resigning even if a signature file is already present

### write\_fileobj() <a href="#a2acb76b599b02849510c2e5778053ad8" id="a2acb76b599b02849510c2e5778053ad8"></a>

def write\_fileobj

static

Write archive to file object by recursively walking through the in-memory node tree.

**Parameters**

**archive** archive node **fileobj** file object to write to **fix** fix archive before writing **force\_resign** True will for resigning even if a signature file is already present

### write\_pickled\_file() <a href="#a9dc1a2b812a7bef1aed7bd4b16a5d4af" id="a9dc1a2b812a7bef1aed7bd4b16a5d4af"></a>

def write\_pickled\_file

static

Write pickled file.

**Parameters**

**o** object to pickle **path** path to the pickled file **gz** wether pickled file is gzipped

***

The documentation for this class was generated from the following file:

* packman/packmanlib/[io.py](/adk-5.0-programmers-guide/readme/files/dir_026ced32df3e5de142ca5346a10962b0/dir_76d7bc695de4919fb54ecb5d68e5f54d/io_8py.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/adk-5.0-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1io/classpackmanlib_1_1io_1_1_archive_writer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
