[quote]// All these length includes the NULL termination at the end of the string
#define FS_MAX_PATH_LENGTH (260 - 2) // To maintain compatibility with the desktop, the max “relative” path we can allow. 2 is the MAX_DRIVE, i.e. “C:”, “D:” … etc
#define FS_MAX_FILENAME_LENGTH 256
#define FS_MAX_DIRECTORY_LENGTH (FS_MAX_PATH_LENGTH - 12) // As required by desktop, the longest directory path is MAX_PATH - 12 (size of an 8.3 file name)[/quote]
That would indicate that the longest directory length is (260-2)-12 = 246
My longest directory name is only 40 chars long including the file name and extension and null termination.
I will try and dig into the open source code to see what more I can find.