# fs.getFolder() stucks in "MyPlugin is working"

**URL:** <https://forums.creativeclouddeveloper.com/t/fs-getfolder-stucks-in-myplugin-is-working/4294>\
**Category:** Adobe XD\
**Created:** [February 14, 2022, 7:18am UTC](https://forums.creativeclouddeveloper.com/t/fs-getfolder-stucks-in-myplugin-is-working/4294 "2022-02-14T07:18:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siam009](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@siam009](https://forums.creativeclouddeveloper.com/u/siam009)\
**Post date:** [February 14, 2022, 7:18am UTC](https://forums.creativeclouddeveloper.com/t/fs-getfolder-stucks-in-myplugin-is-working/4294/1 "2022-02-14T07:18:10Z")

</div>

I am trying to run this [How to export all children of all selected artboards in an async manner - #13 by gdreyv](http://forums.creativeclouddeveloper.com/t/how-to-export-all-children-of-all-selected-artboards-in-an-async-manner/819/13) in my plugin “MyPlugin”.  
But when I am trying to run my plugin it shows me a loader with text “MyPlugin is working”. The loader keeps loading.  
I think the problem is beacuse of await fs.getFolder();  
Is there any solution of this?

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [February 14, 2022, 9:37am UTC](https://forums.creativeclouddeveloper.com/t/fs-getfolder-stucks-in-myplugin-is-working/4294/2 "2022-02-14T09:37:50Z")

</div>

Try wrapping your code in a try/catch so you can log a more detailed error.  
fs.getFolder() should open a dialog to select a folder on your filesystem, so if that’s not happening then check that you have imported fs correctly.
