# Selected folder/file path in Project View

**URL:** <https://discourse.mapeditor.org/t/selected-folder-file-path-in-project-view/7306>\
**Category:** Suggestions\
**Created:** [February 21, 2025, 8:52am UTC](https://discourse.mapeditor.org/t/selected-folder-file-path-in-project-view/7306 "2025-02-21T08:52:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mstfmrt07](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/mstfmrt07/32/4939_2.png) [@mstfmrt07](https://discourse.mapeditor.org/u/mstfmrt07)\
**Post date:** [February 21, 2025, 8:52am UTC](https://discourse.mapeditor.org/t/selected-folder-file-path-in-project-view/7306/1 "2025-02-21T08:52:09Z")

</div>

Hello,  
This is my first post in the forum and sorry if it is the wrong sub. I’m currently developing an extension which simply iterates through all the files in a directory and exports them as a single text file. I extended the menu in “ProjectView.File” but it works on any file/folder. When I right-click on the file/folder it shows the extension in the menu but it does not work on the selected folder; I have to select the folder manually by promptDirectory(). Then I have to select where to export the newly generated text file (and it makes 2 steps with prompt popups) I think this is a long process and my teammates sometimes confuse which prompt to choose the folder first and exporting file in the last step.

What I want is to find a way to locate the folder that is currently clicked(or selected) in the Project view. And I think it would be a great step for the developers creating their own extensions.

I’d appreciate if it is added in the upcoming versions. (Or if there is a way, I can create my own fork and implement it if you guide me a little bit) I’m desperately in need! 🙂 Thanks a lot!

---

<div class="post-metadata">

**Author:** ![mstfmrt07](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/mstfmrt07/32/4939_2.png) [@mstfmrt07](https://discourse.mapeditor.org/u/mstfmrt07)\
**Post date:** [May 23, 2025, 8:19am UTC](https://discourse.mapeditor.org/t/selected-folder-file-path-in-project-view/7306/2 "2025-05-23T08:19:22Z")

</div>

@eishiya Sorry to bother, any help maybe?

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [May 23, 2025, 11:58am UTC](https://discourse.mapeditor.org/t/selected-folder-file-path-in-project-view/7306/3 "2025-05-23T11:58:01Z")

</div>

There is currently no way to get the selected folder/file in the Project view, the Project view isn’t exposed to scripting at all.
