# Packaging nested directories using OpenTAP Package Manager CLI

**URL:** https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341
**Category:** General
**Created:** [June 10, 2021, 7:45pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341 "2021-06-10T19:45:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![navjodh](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@navjodh](https://forum.opentap.io/u/navjodh)
#### Post date: [June 10, 2021, 7:45pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/1 "2021-06-10T19:45:42Z")

</div>

In case of a project structure that has nested directories/subdirectories, is there an easy way to add all files (including subdirectories) in package.xml by pointing package.xml to the top level directory?

1. Currently, while wildcards are supported in package.xml, it scans only the specified wildcard directory and not subdirectories.
2. Are there any considerations if the files/assemblies being packaged are _not_ OpenTAP plugins.

---

<div class="post-metadata">

### Author: ![david-wsd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/david-wsd/32/204_2.png) [@david-wsd](https://forum.opentap.io/u/david-wsd)
#### Post date: [June 10, 2021, 10:31pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/2 "2021-06-10T22:31:53Z")

</div>

HI @navjodh, I had the same struggle. I ended up writing a method that enumerates all my wanted files and creates the package.xml file automatically. I’ve only had to use it once or twice, since then I’ve just made minor manual changes to package.xml.

---

<div class="post-metadata">

### Author: ![navjodh](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@navjodh](https://forum.opentap.io/u/navjodh)
#### Post date: [June 12, 2021, 1:00am UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/3 "2021-06-12T01:00:02Z")

</div>

@david-wsd : Thanks for the response. Yes, I think it makes sense to create a script that can do that, though I’d prefer to have built-in capability to do that since projects can often have a large number of nested folders.

---

<div class="post-metadata">

### Author: ![jeff.dralla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/jeff.dralla/32/220_2.png) [@jeff.dralla](https://forum.opentap.io/u/jeff.dralla)
#### Post date: [June 17, 2021, 1:28am UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/4 "2021-06-17T01:28:32Z")

</div>

Welcome (back) to the OpenTAP Forum @navjodh! Great to have you part of the community.

---

<div class="post-metadata">

### Author: ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)
#### Post date: [June 22, 2021, 5:18pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/5 "2021-06-22T17:18:02Z")

</div>

@navjodh (and maybe @david-wsd too) in the package.xml you can use `**` to mean “everything”. You still need to map this to your directory structure is you have multiple layers of subdirectories. For instance:

```csharp
Packages\MyPlugin\ **\**

```

[https://doc.opentap.io/Developer%20Guide/Plugin%20Packaging%20and%20Versioning/#wildcards](https://doc.opentap.io/Developer%20Guide/Plugin%20Packaging%20and%20Versioning/#wildcards)

---

<div class="post-metadata">

### Author: ![navjodh](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@navjodh](https://forum.opentap.io/u/navjodh)
#### Post date: [June 23, 2021, 8:57pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/6 "2021-06-23T20:57:32Z")

</div>

Thanks @jeff.dralla! Good to be here 🙂

---

<div class="post-metadata">

### Author: ![navjodh](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@navjodh](https://forum.opentap.io/u/navjodh)
#### Post date: [June 23, 2021, 8:58pm UTC](https://forum.opentap.io/t/packaging-nested-directories-using-opentap-package-manager-cli/341/7 "2021-06-23T20:58:50Z")

</div>

Thanks for the answer, @brennen_direnzo . I think this will work for me.
