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:
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?