# Is there a way withthe SDK to obtain the gateway data directory path?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [April 1, 2020, 2:44pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584 "2020-04-01T14:44:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 1, 2020, 2:44pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584/1 "2020-04-01T14:44:20Z")

</div>

Is there a way with the SDK to obtain the gateway data directory path ?

---

<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:** [April 1, 2020, 2:52pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584/2 "2020-04-01T14:52:00Z")

</div>

GatewayContext -\> SystemManager -\> getDataDir()

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 1, 2020, 2:53pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584/3 "2020-04-01T14:53:23Z")

</div>

👍 I was sure it was anywhere

---

<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:** [April 1, 2020, 3:25pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-withthe-sdk-to-obtain-the-gateway-data-directory-path/33584/4 "2020-04-01T15:25:00Z")

</div>

In 7.9 or earlier, it’s `getHomeDir()` for inexplicable legacy reasons.
