According to SDK javadoc,
com.inductiveautomation.ignition.common.sqltags.model, Interface TagPath,
isFolder() is Deprecated.,
TagProp getProperty()
Returns the type of property in the tag that this path is referencing. If this path represents a folder, this will be null. If the path points just to a tag, this will return TagProp.Value (the default property)
But with a tag folder path, tagPath.getProperty() doesn’t return null (client and designer scope).
I missed something or there is another way to test if a TagPath is a folder or not