# SDK 8.0 : determine if a path is a tag path or a folder path?

**URL:** <https://forum.inductiveautomation.com/t/sdk-8-0-determine-if-a-path-is-a-tag-path-or-a-folder-path/28542>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [September 25, 2019, 10:48am UTC](https://forum.inductiveautomation.com/t/sdk-8-0-determine-if-a-path-is-a-tag-path-or-a-folder-path/28542 "2019-09-25T10:48:14Z")\
**Posts on this page:** 2\
**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:** [September 25, 2019, 10:48am UTC](https://forum.inductiveautomation.com/t/sdk-8-0-determine-if-a-path-is-a-tag-path-or-a-folder-path/28542/1 "2019-09-25T10:48:14Z")

</div>

is there a way with the SDK 8.0 to determine if a path is a tag path or a folder path ?

```auto
tagPath = TagPathParser.parseSafe("default", fullTagPath);

```

returned tagPath has no information about tag or folder.

---

<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:** [September 25, 2019, 11:49am UTC](https://forum.inductiveautomation.com/t/sdk-8-0-determine-if-a-path-is-a-tag-path-or-a-folder-path/28542/2 "2019-09-25T11:49:56Z")

</div>

You have to read the `NodeDescription` tag prop and then get the `TagObjectType` from it.

If you squint enough you can pretend this is Java:

```auto
    private suspend fun readTagObjectType(tagPath: TagPath): TagObjectType {
        val descriptionPath = tagPath.getChildPath(RuntimeTagProps.NodeDescription)

        val qv = tagManager.readAsync(listOf(descriptionPath)).await()[0]
        val nodeDescription = qv.value as? NodeDescription

        return nodeDescription?.objectType
            ?: throw UaException(StatusCodes.Bad_NodeIdUnknown)
    }

```
