> 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/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1basenode/classpackmanlib_1_1basenode_1_1_base_node.md).

# BaseNode

[Public Member Functions](#pub-methods) | [Static Public Member Functions](#pub-static-methods) | [Data Fields](#pub-attribs)

Inheritance diagram for BaseNode:

![Inheritance graph](/files/qAJdJ0Nd4B4Dvi8s58tu)

\[[legend](/s-adk-5.1-programmers-guide/graph_legend.md)]

|                         |                                                                                                                                                                                                                                                                                                                                                                                                   |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Member Functions |                                                                                                                                                                                                                                                                                                                                                                                                   |
| def                     | [\_\_init\_\_](#aee93ed72a2829b54a0e13377d0f84b6a) (self, str [name](#ab74e6bf80237ddc4109968cedc58c151)=None, [BaseNode](/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1basenode/classpackmanlib_1_1basenode_1_1_base_node.md) [parent](#a457d913bff1ebc8671c1eca1c9d5fc03)=None, tarfile.TarInfo [tarinfo](#ac9728b28ae902f349b97f7d526fb4885)=None) |
| str                     | [get\_type\_str](#a97064a535f192320c134e450ac478e60) (self)                                                                                                                                                                                                                                                                                                                                       |
|                         | <p>Returns node type as string Supported are: "Package", "Bundle", "Dlfile", "Signature", "Control", "Manifest", "Dir", "File", "Symlink". <a href="#a97064a535f192320c134e450ac478e60">More...</a><br></p>                                                                                                                                                                                       |
| bool                    | [is\_csd](#a40036e92a96400bbf76bacb62fc97ced) (self)                                                                                                                                                                                                                                                                                                                                              |
|                         | <p>Test if node is a CSD. <a href="#a40036e92a96400bbf76bacb62fc97ced">More...</a><br></p>                                                                                                                                                                                                                                                                                                        |
| bool                    | [is\_inf](#a0aa49779f6dac40e366fb98ec8ff311c) (self)                                                                                                                                                                                                                                                                                                                                              |
|                         | <p>Test if node is an INF. <a href="#a0aa49779f6dac40e366fb98ec8ff311c">More...</a><br></p>                                                                                                                                                                                                                                                                                                       |
| bool                    | [is\_meta](#a2d50a1b2388573865420bb7a54cf797b) (self)                                                                                                                                                                                                                                                                                                                                             |
|                         | <p>Test if node is a META. <a href="#a2d50a1b2388573865420bb7a54cf797b">More...</a><br></p>                                                                                                                                                                                                                                                                                                       |
| bool                    | [is\_manifest](#a03b8f2bf011d738d9c66f0d4488a03db) (self)                                                                                                                                                                                                                                                                                                                                         |
|                         | <p>Test if node is a manifest. <a href="#a03b8f2bf011d738d9c66f0d4488a03db">More...</a><br></p>                                                                                                                                                                                                                                                                                                   |
| bool                    | [is\_titus\_manifest](#a660fd9d641be5dcabd72bc3f7a43bb3a) (self)                                                                                                                                                                                                                                                                                                                                  |
|                         | <p>Test if node is a titus manifest. <a href="#a660fd9d641be5dcabd72bc3f7a43bb3a">More...</a><br></p>                                                                                                                                                                                                                                                                                             |
| bool                    | [is\_changeset](#a42def0c1678d16515df9b441fde73ba7) (self)                                                                                                                                                                                                                                                                                                                                        |
|                         | <p>Test if node is a changeset. <a href="#a42def0c1678d16515df9b441fde73ba7">More...</a><br></p>                                                                                                                                                                                                                                                                                                  |
| bool                    | [is\_archive](#afb49d022eb8d0e551f9c5d57872086eb) (self)                                                                                                                                                                                                                                                                                                                                          |
|                         | <p>Test if node is an archive. <a href="#afb49d022eb8d0e551f9c5d57872086eb">More...</a><br></p>                                                                                                                                                                                                                                                                                                   |
| bool                    | [is\_dlfile](#a6327b157864352a36826a505ee8870ad) (self)                                                                                                                                                                                                                                                                                                                                           |
|                         | <p>Test if node is a dlfile. <a href="#a6327b157864352a36826a505ee8870ad">More...</a><br></p>                                                                                                                                                                                                                                                                                                     |
| bool                    | [is\_titusdl](#a172339586f49f0905aeb7b8038a33ca9) (self)                                                                                                                                                                                                                                                                                                                                          |
|                         | <p>Test if node is a titusdl. <a href="#a172339586f49f0905aeb7b8038a33ca9">More...</a><br></p>                                                                                                                                                                                                                                                                                                    |
| bool                    | [is\_titusconfig](#ac8efc19aba65fe021eb74aa5cc8bee69) (self)                                                                                                                                                                                                                                                                                                                                      |
|                         | <p>Test if node is a titusconfig. <a href="#ac8efc19aba65fe021eb74aa5cc8bee69">More...</a><br></p>                                                                                                                                                                                                                                                                                                |
| bool                    | [is\_hpsfile](#a01c3f16b49421fb36975feed4d65ba93) (self)                                                                                                                                                                                                                                                                                                                                          |
|                         | <p>Test if node is a dlfile. <a href="#a01c3f16b49421fb36975feed4d65ba93">More...</a><br></p>                                                                                                                                                                                                                                                                                                     |
| bool                    | [is\_upfile](#acf1c247a2b5b619a761649da45f9d974) (self)                                                                                                                                                                                                                                                                                                                                           |
|                         | <p>Test if node is an upfile. <a href="#acf1c247a2b5b619a761649da45f9d974">More...</a><br></p>                                                                                                                                                                                                                                                                                                    |
| bool                    | [is\_bundle](#a6c8f1769f4874c20b3dc5e7f22169c23) (self)                                                                                                                                                                                                                                                                                                                                           |
|                         | <p>Test if node is a bundle. <a href="#a6c8f1769f4874c20b3dc5e7f22169c23">More...</a><br></p>                                                                                                                                                                                                                                                                                                     |
| bool                    | [is\_package](#a9cf4df8f61cbc1db2e463deb9956adda) (self)                                                                                                                                                                                                                                                                                                                                          |
|                         | <p>Test if node is a package. <a href="#a9cf4df8f61cbc1db2e463deb9956adda">More...</a><br></p>                                                                                                                                                                                                                                                                                                    |
| bool                    | [is\_signature](#a59551a137c22107950f7fe2b4a20e247) (self)                                                                                                                                                                                                                                                                                                                                        |
|                         | <p>Test if node is a signature. <a href="#a59551a137c22107950f7fe2b4a20e247">More...</a><br></p>                                                                                                                                                                                                                                                                                                  |
| bool                    | [is\_control](#ad01c8a8ff3a9536ea1adbab2ddaf15f4) (self)                                                                                                                                                                                                                                                                                                                                          |
|                         | <p>Test if node is a control. <a href="#ad01c8a8ff3a9536ea1adbab2ddaf15f4">More...</a><br></p>                                                                                                                                                                                                                                                                                                    |
| def                     | [mark\_modified](#a5c02300a2d52e15bf94b8286acdad576) (self)                                                                                                                                                                                                                                                                                                                                       |
| def                     | [get\_parent\_archive](#a2f67b333aa5e0d678c748c2ebbdeee7f) (self)                                                                                                                                                                                                                                                                                                                                 |
|                         | <p>Retrieve parent archive node. <a href="#a2f67b333aa5e0d678c748c2ebbdeee7f">More...</a><br></p>                                                                                                                                                                                                                                                                                                 |
| def                     | [get\_platform](#a6199c59cb64af881cd70a380d639f62e) (self)                                                                                                                                                                                                                                                                                                                                        |
|                         | <p>Retrieve platform for this node. <a href="#a6199c59cb64af881cd70a380d639f62e">More...</a><br></p>                                                                                                                                                                                                                                                                                              |
| def                     | [get\_root\_archive](#acb1a58b36d03f8b533010786b27456c4) (self)                                                                                                                                                                                                                                                                                                                                   |
|                         | <p>Retrieve root archive node Root archive node has no parent archive. <a href="#acb1a58b36d03f8b533010786b27456c4">More...</a><br></p>                                                                                                                                                                                                                                                           |
| int                     | [get\_index](#a8805808f42b6763bd9c2696d2854c7db) (self)                                                                                                                                                                                                                                                                                                                                           |
|                         | <p>Retrieve index of this node in the list of its parent's children. <a href="#a8805808f42b6763bd9c2696d2854c7db">More...</a><br></p>                                                                                                                                                                                                                                                             |
| def                     | [get\_signer](#adc09e25e108582cfddcbfd41fb8298a4) (self)                                                                                                                                                                                                                                                                                                                                          |
| int                     | [get\_mode](#a604c74b4565be8a42ee33de761c28f51) (self)                                                                                                                                                                                                                                                                                                                                            |
|                         | <p>Retrieve file mode of this node. <a href="#a604c74b4565be8a42ee33de761c28f51">More...</a><br></p>                                                                                                                                                                                                                                                                                              |
| def                     | [\_\_str\_\_](#a23e8041ce1015febe4fdace3225714f9) (self)                                                                                                                                                                                                                                                                                                                                          |

|                                |                                                                                              |
| ------------------------------ | -------------------------------------------------------------------------------------------- |
| Static Public Member Functions |                                                                                              |
| tarfile.TarInfo                | [create\_tarinfo](#a858aac03715077f836c526caa69896c7) (str tarinfo\_name, entry\_type)       |
|                                | <p>Tarinfo creation helper. <a href="#a858aac03715077f836c526caa69896c7">More...</a><br></p> |
| def                            | [create\_node](#a343e89c35fe71dea3b002b3eb444efa6) (tarinfo\_name, entry\_type)              |

|             |                                                                                                                                      |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Data Fields |                                                                                                                                      |
|             | [name](#ab74e6bf80237ddc4109968cedc58c151)                                                                                           |
|             | <p>node name (str) <a href="#ab74e6bf80237ddc4109968cedc58c151">More...</a><br></p>                                                  |
|             | [parent](#a457d913bff1ebc8671c1eca1c9d5fc03)                                                                                         |
|             | <p>parent node (<a href="/pages/SPgJtBJpkboOhIrk36eQ">BaseNode</a>) <a href="#a457d913bff1ebc8671c1eca1c9d5fc03">More...</a><br></p> |
|             | [tarinfo](#ac9728b28ae902f349b97f7d526fb4885)                                                                                        |
|             | <p>children of this node in order. <a href="#ac9728b28ae902f349b97f7d526fb4885">More...</a><br></p>                                  |
|             | [file\_content](#ae8834017c3a98209d379e0384e291215)                                                                                  |
|             | <p>Object representing the content of the file. <a href="#ae8834017c3a98209d379e0384e291215">More...</a><br></p>                     |
|             | [signature\_nodes](#a71101782c2fbd10a9832594113078cd2)                                                                               |
|             | <p>Nodes holding signature of this node. <a href="#a71101782c2fbd10a9832594113078cd2">More...</a><br></p>                            |
|             | [additional\_signature\_nodes](#a691c0b70ad22568ebe48b0b21b22ee2c)                                                                   |
|             | <p>Nodes holding additional signature of this node. <a href="#a691c0b70ad22568ebe48b0b21b22ee2c">More...</a><br></p>                 |

### DetailedDescription <a href="#detailed-description" id="detailed-description"></a>

```fragment
Base node class for all nodes
```

### Constructor& Destructor Documentation

### \_\_init\_\_() <a href="#aee93ed72a2829b54a0e13377d0f84b6a" id="aee93ed72a2829b54a0e13377d0f84b6a"></a>

def \\\_\\\_init\\\_\\\_

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

### \_\_str\_\_() <a href="#a23e8041ce1015febe4fdace3225714f9" id="a23e8041ce1015febe4fdace3225714f9"></a>

def \\\_\\\_str\\\_\\\_

### create\_node() <a href="#a343e89c35fe71dea3b002b3eb444efa6" id="a343e89c35fe71dea3b002b3eb444efa6"></a>

def create\_node

static

Reimplemented in [Node](/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1node/classpackmanlib_1_1node_1_1_node.md#a57ab1e1ab24335aeaf07ac3ae39c59ee).

### create\_tarinfo() <a href="#a858aac03715077f836c526caa69896c7" id="a858aac03715077f836c526caa69896c7"></a>

tarfile.TarInfo create\_tarinfo

static

Tarinfo creation helper.

**Parameters**

**tarinfo\_name** name for tarinfo **entry\_type** type of tar entry (see TarInfo)

#### Returns

TarInfo instance created

### get\_index() <a href="#a8805808f42b6763bd9c2696d2854c7db" id="a8805808f42b6763bd9c2696d2854c7db"></a>

int get\_index

Retrieve index of this node in the list of its parent's children.

#### Returns

0-based index of this node

### get\_mode() <a href="#a604c74b4565be8a42ee33de761c28f51" id="a604c74b4565be8a42ee33de761c28f51"></a>

int get\_mode

Retrieve file mode of this node.

#### Returns

mode value or None if error

### get\_parent\_archive() <a href="#a2f67b333aa5e0d678c748c2ebbdeee7f" id="a2f67b333aa5e0d678c748c2ebbdeee7f"></a>

def get\_parent\_archive

Retrieve parent archive node.

#### Returns

Parent archive node, itself if no parent

### get\_platform() <a href="#a6199c59cb64af881cd70a380d639f62e" id="a6199c59cb64af881cd70a380d639f62e"></a>

def get\_platform

Retrieve platform for this node.

#### Returns

platform instance

### get\_root\_archive() <a href="#acb1a58b36d03f8b533010786b27456c4" id="acb1a58b36d03f8b533010786b27456c4"></a>

def get\_root\_archive

Retrieve root archive node Root archive node has no parent archive.

#### Returns

Root archive node

### get\_signer() <a href="#adc09e25e108582cfddcbfd41fb8298a4" id="adc09e25e108582cfddcbfd41fb8298a4"></a>

def get\_signer

### get\_type\_str() <a href="#a97064a535f192320c134e450ac478e60" id="a97064a535f192320c134e450ac478e60"></a>

str get\_type\_str

Returns node type as string Supported are: "Package", "Bundle", "Dlfile", "Signature", "Control", "Manifest", "Dir", "File", "Symlink".

#### Returns

node type string or 'Unknown'

### is\_archive() <a href="#afb49d022eb8d0e551f9c5d57872086eb" id="afb49d022eb8d0e551f9c5d57872086eb"></a>

bool is\_archive

Test if node is an archive.

#### Returns

True if it is an archive, False otherwise

### is\_bundle() <a href="#a6c8f1769f4874c20b3dc5e7f22169c23" id="a6c8f1769f4874c20b3dc5e7f22169c23"></a>

bool is\_bundle

Test if node is a bundle.

#### Returns

True if it is a bundle, False otherwise

### is\_changeset() <a href="#a42def0c1678d16515df9b441fde73ba7" id="a42def0c1678d16515df9b441fde73ba7"></a>

bool is\_changeset

Test if node is a changeset.

#### Returns

True if it is a changeset, False otherwise

### is\_control() <a href="#ad01c8a8ff3a9536ea1adbab2ddaf15f4" id="ad01c8a8ff3a9536ea1adbab2ddaf15f4"></a>

bool is\_control

Test if node is a control.

#### Returns

True if it is a control file, False otherwise

### is\_csd() <a href="#a40036e92a96400bbf76bacb62fc97ced" id="a40036e92a96400bbf76bacb62fc97ced"></a>

bool is\_csd

Test if node is a CSD.

#### Returns

True if it is a CSD archive, False otherwise

### is\_dlfile() <a href="#a6327b157864352a36826a505ee8870ad" id="a6327b157864352a36826a505ee8870ad"></a>

bool is\_dlfile

Test if node is a dlfile.

#### Returns

True if it is a dlfile, False otherwise

### is\_hpsfile() <a href="#a01c3f16b49421fb36975feed4d65ba93" id="a01c3f16b49421fb36975feed4d65ba93"></a>

bool is\_hpsfile

Test if node is a dlfile.

#### Returns

True if it is a dlfile, False otherwise

### is\_inf() <a href="#a0aa49779f6dac40e366fb98ec8ff311c" id="a0aa49779f6dac40e366fb98ec8ff311c"></a>

bool is\_inf

Test if node is an INF.

#### Returns

True if it is an INF archive, False otherwise

### is\_manifest() <a href="#a03b8f2bf011d738d9c66f0d4488a03db" id="a03b8f2bf011d738d9c66f0d4488a03db"></a>

bool is\_manifest

Test if node is a manifest.

#### Returns

True if it is a manifest, False otherwise

### is\_meta() <a href="#a2d50a1b2388573865420bb7a54cf797b" id="a2d50a1b2388573865420bb7a54cf797b"></a>

bool is\_meta

Test if node is a META.

#### Returns

True if it is a META archive, False otherwise

### is\_package() <a href="#a9cf4df8f61cbc1db2e463deb9956adda" id="a9cf4df8f61cbc1db2e463deb9956adda"></a>

bool is\_package

Test if node is a package.

#### Returns

True if it is a package, False otherwise

### is\_signature() <a href="#a59551a137c22107950f7fe2b4a20e247" id="a59551a137c22107950f7fe2b4a20e247"></a>

bool is\_signature

Test if node is a signature.

#### Returns

True if it is a signature, False otherwise

### is\_titus\_manifest() <a href="#a660fd9d641be5dcabd72bc3f7a43bb3a" id="a660fd9d641be5dcabd72bc3f7a43bb3a"></a>

bool is\_titus\_manifest

Test if node is a titus manifest.

#### Returns

True if it is a titus manifest, False otherwise

### is\_titusconfig() <a href="#ac8efc19aba65fe021eb74aa5cc8bee69" id="ac8efc19aba65fe021eb74aa5cc8bee69"></a>

bool is\_titusconfig

Test if node is a titusconfig.

#### Returns

True if it is a titusconfig, False otherwise

### is\_titusdl() <a href="#a172339586f49f0905aeb7b8038a33ca9" id="a172339586f49f0905aeb7b8038a33ca9"></a>

bool is\_titusdl

Test if node is a titusdl.

#### Returns

True if it is a titusdl, False otherwise

### is\_upfile() <a href="#acf1c247a2b5b619a761649da45f9d974" id="acf1c247a2b5b619a761649da45f9d974"></a>

bool is\_upfile

Test if node is an upfile.

#### Returns

True if it is an upfile, False otherwise

### mark\_modified() <a href="#a5c02300a2d52e15bf94b8286acdad576" id="a5c02300a2d52e15bf94b8286acdad576"></a>

def mark\_modified

### FieldDocumentation <a href="#field-documentation" id="field-documentation"></a>

### additional\_signature\_nodes <a href="#a691c0b70ad22568ebe48b0b21b22ee2c" id="a691c0b70ad22568ebe48b0b21b22ee2c"></a>

additional\_signature\_nodes

Nodes holding additional signature of this node.

### file\_content <a href="#ae8834017c3a98209d379e0384e291215" id="ae8834017c3a98209d379e0384e291215"></a>

file\_content

Object representing the content of the file.

### name <a href="#ab74e6bf80237ddc4109968cedc58c151" id="ab74e6bf80237ddc4109968cedc58c151"></a>

name

node name (str)

### parent <a href="#a457d913bff1ebc8671c1eca1c9d5fc03" id="a457d913bff1ebc8671c1eca1c9d5fc03"></a>

parent

parent node ([BaseNode](/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1basenode/classpackmanlib_1_1basenode_1_1_base_node.md))

### signature\_nodes <a href="#a71101782c2fbd10a9832594113078cd2" id="a71101782c2fbd10a9832594113078cd2"></a>

signature\_nodes

Nodes holding signature of this node.

### tarinfo <a href="#ac9728b28ae902f349b97f7d526fb4885" id="ac9728b28ae902f349b97f7d526fb4885"></a>

tarinfo

children of this node in order.

Keys are node name, values [BaseNode](/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1basenode/classpackmanlib_1_1basenode_1_1_base_node.md) instances Tarinfo object containing the type of archive entry, path, user, group, permission, etc. see TarInfo documentation

***

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

* packman/packmanlib/[basenode.py](/s-adk-5.1-programmers-guide/readme/files/dir_026ced32df3e5de142ca5346a10962b0/dir_76d7bc695de4919fb54ecb5d68e5f54d/basenode_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/s-adk-5.1-programmers-guide/readme/namespaces/namespacepackmanlib/namespacepackmanlib_1_1basenode/classpackmanlib_1_1basenode_1_1_base_node.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.
