# Drop folder into JuceApplication

**URL:** <https://forum.juce.com/t/drop-folder-into-juceapplication/22595>\
**Category:** General JUCE discussion\
**Created:** [May 24, 2017, 8:55pm UTC](https://forum.juce.com/t/drop-folder-into-juceapplication/22595 "2017-05-24T20:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FabrizioCheloni95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fabriziocheloni95/32/16938_2.png) [@FabrizioCheloni95](https://forum.juce.com/u/FabrizioCheloni95)\
**Post date:** [May 24, 2017, 8:55pm UTC](https://forum.juce.com/t/drop-folder-into-juceapplication/22595/1 "2017-05-24T20:55:14Z")

</div>

Hi guys!  
I would my application be able to open a folder dropped into it and to reach all the contained files.  
How could I do this?  
Is this possible?

Thank to all of you!

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [May 24, 2017, 9:08pm UTC](https://forum.juce.com/t/drop-folder-into-juceapplication/22595/2 "2017-05-24T21:08:31Z")

</div>

You can inherit [FileDragAndDropTarget](https://www.juce.com/doc/classFileDragAndDropTarget) and override the `virtual void filesDropped (const StringArray &files, int x, int y)` callback.  
This can be only a certain component, or the MainContentComponent.

HTH
