# Folder or UDT at path?

**URL:** <https://forum.inductiveautomation.com/t/folder-or-udt-at-path/103170>\
**Category:** Ignition\
**Created:** [March 3, 2025, 9:02pm UTC](https://forum.inductiveautomation.com/t/folder-or-udt-at-path/103170 "2025-03-03T21:02:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [March 3, 2025, 9:02pm UTC](https://forum.inductiveautomation.com/t/folder-or-udt-at-path/103170/1 "2025-03-03T21:02:08Z")

</div>

I'm trying to find out if there is a more direct way to be able to enter a tagpath and find out if that path is pointing to a tag, udt, or folder.

Currently I am achieving this by using rsplit on the provided path to get the path to the parent node and then using system.tag.browse on that parent path using a filter of the remainder of the provided tag name:

```python
providedPath = [some]path/provided/to/a/folder/maybe
parent = providedPath.rsplit("/",1)
res = system.tag.browse(parent[0], {"name":parent[1]})
if str(res[0]['tagType']) == 'UdtInstance':
	print "foo"
elif str(res[0]['tagType']) == 'Folder':
	print "bar"

```

This is functional, but I'm going to have a lot of these queries going on and this seems massively inefficient. Is there a way to get informaition about the node at the provided path instead of its children?

---

<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:** [March 3, 2025, 9:11pm UTC](https://forum.inductiveautomation.com/t/folder-or-udt-at-path/103170/2 "2025-03-03T21:11:01Z")

</div>

`str(system.tag.readBlocking(["path/to/tag.tagType"])[0].value) == "Folder"`?

---

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [March 3, 2025, 9:17pm UTC](https://forum.inductiveautomation.com/t/folder-or-udt-at-path/103170/3 "2025-03-03T21:17:31Z")

</div>

Thank you! I knew I was missing something obvious and had overly complicated things.
