Don't assume that folders will be less than 256 chars in length, use
1024, which nobody should ever be using more than...
(and if they do, "unsupported")...