# Is it possible to add files to a mender artifact with wildcards?

**URL:** https://hub.mender.io/t/is-it-possible-to-add-files-to-a-mender-artifact-with-wildcards/7310
**Category:** General Discussions
**Created:** [November 7, 2024, 3:28pm UTC](https://hub.mender.io/t/is-it-possible-to-add-files-to-a-mender-artifact-with-wildcards/7310 "2024-11-07T15:28:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![regnisier](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/regnisier/32/2348_2.png) [@regnisier](https://hub.mender.io/u/regnisier)
#### Post date: [November 7, 2024, 3:28pm UTC](https://hub.mender.io/t/is-it-possible-to-add-files-to-a-mender-artifact-with-wildcards/7310/1 "2024-11-07T15:28:17Z")

</div>

Hi all,

during a mender artifact creation, I want to append all files that start with a certain name, e.g. “driverscript\_\*”. I tried using

mender-artifact write module-image   
-f driverscript\_\*

with driverscript\_1.sh and driverscript\_2.sh in the same folder.

However, this just adds the one (the first?) file that matches the wildcard, ignoring all others.

Is there an option to append multiple files like this without having to specify all file names?

Thanks in advance,  
Greetings

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [November 7, 2024, 4:39pm UTC](https://hub.mender.io/t/is-it-possible-to-add-files-to-a-mender-artifact-with-wildcards/7310/2 "2024-11-07T16:39:18Z")

</div>

Hi @regnisier,

As far as I can see, not directly. It’s not just about adding multiple files to the artifact, it’s also about having an update module on the receiving end which can handle those appropriately. So you probably need to create a custom update module with the required logic. Maybe basing off the `single-file` one is a good starting point, see [Single File](https://hub.mender.io/t/single-file/486)

Hope this helps,  
Josef
