# Add files/folders during export

**URL:** <https://discourse.processing.org/t/add-files-folders-during-export/44022>\
**Category:** Development\
**Created:** [March 3, 2024, 9:39am UTC](https://discourse.processing.org/t/add-files-folders-during-export/44022 "2024-03-03T09:39:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bananana](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@bananana](https://discourse.processing.org/u/bananana)\
**Post date:** [March 3, 2024, 9:39am UTC](https://discourse.processing.org/t/add-files-folders-during-export/44022/1 "2024-03-03T09:39:17Z")

</div>

I maintain a Processing library that requires some specific .dll/.dylib/.so files that I include with the library when it is downloaded.

When a sketch that includes my library, how can have these folders copied into the application.windows/lib folder? In the same way that the data folder is copied to the applications.windows/ folder.

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [March 4, 2024, 1:34pm UTC](https://discourse.processing.org/t/add-files-folders-during-export/44022/2 "2024-03-04T13:34:00Z")

</div>

Hi @bananana,

In principle, assuming you’ve setup you library correct, it gets nearly automatically. 🙂  
If you have dependent system libraries, like ie. `.dll` for windows or `.so` for linux, your library project should be bundle like this …

> mylibrary  
> mylibrary/library.properties  
> mylibrary/examples/…  
> mylibrary/src/…  
> mylibrary/library/mylibrary.jar  
> mylibrary/library/jna.jar (assuming, jna interface to the dll,so,etc.)  
> mylibrary/ **library/windows-amd64/my.dll**  
> mylibrary/ **library/linux-amd64/my.so**

In that case, the export application choose the corresponding system libraries depending on which port you choose and put them into the exported lib directory …

hope that helps …

Cheers  
— mnse
