For my photos, music and documents, which come from various sources, I have build quite a huge Hazel workflow automatically renaming, sorting and archiving the files into directories. I have a multi platform environment (MacOS, Linux, iOS, Windows, some cloud services and NAS to access the files and I have issues in Hazel to process the files when the filename is longer then 254 characters.
In short: Its a rule I want to check the integrity of filenames and folder names to not be longer than that. I already do that to allow only certain characters but limiting the number of characters seems to be a bit harder.