# Use fileExists to see hidden files

**URL:** <https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340>\
**Category:** Ignition\
**Created:** [October 11, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340 "2023-10-11T14:32:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordan.richardson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jordan.richardson](https://forum.inductiveautomation.com/u/jordan.richardson)\
**Post date:** [October 11, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340/1 "2023-10-11T14:32:19Z")

</div>

I have looked across the forums but haven't had any luck with the exact verbage I guess. Is it possible to see files that are located in Hidden folders? A OEM has created a cache in the AppData folder that I am needing to read info off of but fileExists return false after hitting AppData.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 11, 2023, 2:39pm UTC](https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340/2 "2023-10-11T14:39:16Z")

</div>

What Ignition (because of Java) can see in the scope of the local process/JVM (Gateway, Client, Designer) is up to the OS. Do you have some sample code you're trying (and where are you calling it from?)

---

<div class="post-metadata">

**Author:** ![jordan.richardson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jordan.richardson](https://forum.inductiveautomation.com/u/jordan.richardson)\
**Post date:** [October 11, 2023, 2:52pm UTC](https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340/3 "2023-10-11T14:52:45Z")

</div>

Well, unfortunately I figured it out. I forgot that script console works from the clients perspective and not the gateways(The file I need is on the gateway). Then I tried setting fileExists in a script package, but that's still called from a client scope. I guess I'll have to use some tags and gateway event to do testing?

As for sample code it's really just the fileExists at the moment because that's where I'm starting from

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 11, 2023, 3:22pm UTC](https://forum.inductiveautomation.com/t/use-fileexists-to-see-hidden-files/80340/4 "2023-10-11T15:22:29Z")

</div>

> [@jordan.richardson](#):
>
> Then I tried setting fileExists in a script package, but that's still called from a client scope. I guess I'll have to use some tags and gateway event to do testing?

Yes. Putting it into a script library doesn't change anything. All that matters is what scope executes the call.
