On Windows, there should not be 255 characters for file paths.
CreateFileA has a limit of 260 characters. CreateFileW supports names up to 32,760 characters (64 KB).
Some file systems impose additional restrictions on the maximum level of nesting directories or the maximum length of each part.
You are probably thinking of some popular Windows programs with a 255 character limit, but placing those with a warning or a user-configurable option is probably more appropriate than adding your own hard limit .
source share