# Searching mounted folder for an image

**URL:** <https://forum.inductiveautomation.com/t/searching-mounted-folder-for-an-image/68230>\
**Category:** Ignition\
**Created:** [January 4, 2023, 7:28pm UTC](https://forum.inductiveautomation.com/t/searching-mounted-folder-for-an-image/68230 "2023-01-04T19:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [January 4, 2023, 7:28pm UTC](https://forum.inductiveautomation.com/t/searching-mounted-folder-for-an-image/68230/1 "2023-01-04T19:28:32Z")

</div>

Is there a way to use a wildcard search on a mounted folder in the WebDev Module? I want to find image files.

Or use something like system.file.fileExists() function?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 4, 2023, 8:01pm UTC](https://forum.inductiveautomation.com/t/searching-mounted-folder-for-an-image/68230/2 "2023-01-04T20:01:04Z")

</div>

Do you need the result returned as an HTTP response? If so, make another WebDev endpoint that does the search for you and returns JSON (or whatever) to the requestor.

If you need the result in a script, just search the folder directly (in gateway or perspective scope), or via a message handler (in vision client or designer scope).

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [January 4, 2023, 8:26pm UTC](https://forum.inductiveautomation.com/t/searching-mounted-folder-for-an-image/68230/3 "2023-01-04T20:26:08Z")

</div>

Alright I think I got it. Thanks for the help.

I'm using a message handler to search the folder on the server directly ('C:/some/folder/filename\_\*.png') using glob.

I'm then replacing my direct 'C:/some/folder/ ' section of my path with my WebDev mounted folder path. Then I'm using that to bring up an image on my perspective page.
