Max Length for tags

Is there a maximum length for tag names, paths, or values? What about a maximum folder depth?

I’m creating tags using IALabs scripting module, and it looked like extremely deep trees of tags with long path names were throwing exceptions.

How many bytes is the path? You might also be limited, like in the other post, to the 4096 bytes in a string. However, since Java uses unicode, you will be limited to 2048 characters.