# Module resource - how to obtain absolute folder path

**URL:** <https://forum.inductiveautomation.com/t/module-resource-how-to-obtain-absolute-folder-path/117875>\
**Category:** Module Development\
**Tags:** ignition83\
**Created:** [November 17, 2026, 6:56pm UTC](https://forum.inductiveautomation.com/t/module-resource-how-to-obtain-absolute-folder-path/117875 "2026-11-17T18:56:55Z")\
**Posts on this page:** 3\
**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:** [November 17, 2026, 6:56pm UTC](https://forum.inductiveautomation.com/t/module-resource-how-to-obtain-absolute-folder-path/117875/1 "2026-11-17T18:56:55Z")

</div>

I try to obtain absolute file path of a config resource but it seems not possible ?

I’m probably missing something, or maybe it’s intentional, but the API only exposes logical data and hides the actual file system hierarchy.

When I create or find the resource, from the resource object, I can't obtain the absolute folder path.

```python
ResourceType type = new ResourceType(Constantes.MODULE_ID,"license");
Optional<Resource> resourceFind = context.getConfigurationManager().getConfigCollection().getSingletonResource(type);
...
resourceFind.get()

```

My Resource contain a file and I need to pass the absolute folder of this file when calling an external library.

---

<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:** [November 17, 2026, 7:15pm UTC](https://forum.inductiveautomation.com/t/module-resource-how-to-obtain-absolute-folder-path/117875/2 "2026-11-17T19:15:28Z")

</div>

Mostly intentional/you ideally shouldn't need to resolve exact file paths. There's a static utility method, but it's considered implementation rather than API so not easily accessible to you.

Technically the correct logic would be to check `com.inductiveautomation.ignition.common.SystemProps#CONFIG_DIRECTORY`; if it's not present then you resolve:

```python
context
        .getSystemManager()
        .getDataDir()
        .toPath()
        .resolve("config/resources")
        .toAbsolutePath()

```

Then resolving an explicit resource under that relies on reversing the resource type / folder path encoding scheme.

A safer/saner approach might be to _copy_ the data you need into a module-specific temp directory and point the external lib there.

---

<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:** [November 17, 2026, 7:22pm UTC](https://forum.inductiveautomation.com/t/module-resource-how-to-obtain-absolute-folder-path/117875/3 "2026-11-17T19:22:47Z")

</div>

Thanks a lot, that make sense.

Using Config Resources was convenient for me to store data synchronized between master/backup gateway...

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a39246273f3362b3b2be1c9b09fa20acaeb7ec6a.png)

```python
{
  "scope": "A",
  "version": 1,
  "restricted": false,
  "overridable": true,
  "files": [
    "verification.txt",
    "config.json"
  ],
  "attributes": {}
}

```
