# Ignition communication with a driver or folder, alarm when folder reach max capacity

**URL:** <https://forum.inductiveautomation.com/t/ignition-communication-with-a-driver-or-folder-alarm-when-folder-reach-max-capacity/105943>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [May 6, 2025, 8:35pm UTC](https://forum.inductiveautomation.com/t/ignition-communication-with-a-driver-or-folder-alarm-when-folder-reach-max-capacity/105943 "2025-05-06T20:35:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.hernandez](https://avatars.discourse-cdn.com/v4/letter/i/e95f7d/32.png) [@ivan.hernandez](https://forum.inductiveautomation.com/u/ivan.hernandez)\
**Post date:** [May 6, 2025, 8:35pm UTC](https://forum.inductiveautomation.com/t/ignition-communication-with-a-driver-or-folder-alarm-when-folder-reach-max-capacity/105943/1 "2025-05-06T20:35:32Z")

</div>

Hello everyone

Trying to build a custom script or find a way to create an alarm in Ignition when a folder ( folder stores images that are not good from a Cognex Camera) reach max capacity. trying to get some ideas on how to create the comm, how to get the capacity and link memory tag, any help would be highly appreaciate

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 6, 2025, 9:21pm UTC](https://forum.inductiveautomation.com/t/ignition-communication-with-a-driver-or-folder-alarm-when-folder-reach-max-capacity/105943/2 "2025-05-06T21:21:02Z")

</div>

Gateway timer script that runs at a set rate(1s or 5s) to check the number of files in the folder or get total size of all items in the folder. Once its above a limit, send out a warning email, or set a memory tag to `1` and have an alarm defined on that tag.

The folder will need to be accessible from the gateway device, as perspective does not have access to the local client's filesystem.
