# How to Unzip  Folder in Using file listener

**URL:** <https://forums.pega.com/t/how-to-unzip-folder-in-using-file-listener/4504>\
**Category:** General\
**Tags:** insurance, dev-designer-studio, 8-6-6, pega-academy, system-architect, data-integration\
**Created:** [May 20, 2023, 5:58pm UTC](https://forums.pega.com/t/how-to-unzip-folder-in-using-file-listener/4504 "2023-05-20T17:58:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venugopal\_Paladugu](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@Venugopal\_Paladugu](https://forums.pega.com/u/Venugopal_Paladugu)\
**Post date:** [May 20, 2023, 5:58pm UTC](https://forums.pega.com/t/how-to-unzip-folder-in-using-file-listener/4504/1 "2023-05-20T17:58:17Z")

</div>

I have zip folder, in that i have two files i need to unzip that folder in pega and next i have to use those files can any help in this. thanks in advance

---

<div class="post-metadata">

**Author:** ![VinayKumarL16594575](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/vinaykumarl16594575/32/13794_2.png) [@VinayKumarL16594575](https://forums.pega.com/u/VinayKumarL16594575)\
**Post date:** [May 22, 2023, 2:55am UTC](https://forums.pega.com/t/how-to-unzip-folder-in-using-file-listener/4504/2 "2023-05-22T02:55:40Z")

</div>

@PaladuguV

Create a function with two parameters.

1. sourceFilePath : Where the zip file is located

2. destFolder: Where you want to place the unzipped files.

Please refer the java code snippet attached.

Thanks,

Vinay

[Unzip.txt](https://forums.pega.com/uploads/short-url/qYCxdOf22kxsOlrNhjhVKGwSMrc.txt) (1.51 KB)

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [May 22, 2023, 5:38am UTC](https://forums.pega.com/t/how-to-unzip-folder-in-using-file-listener/4504/3 "2023-05-22T05:38:43Z")

</div>

@VinayKumarL16594575 so we can use this java code to unzip first, then file listener to listen to the folder where files are getting extracted so that we can get those files attach them to case. Am I right?
