It would appear that Windows 10 has a limit on the length of the name of each individual file of 92 characters (plus extension). That is based purely on experimentation, I couldn’t find any documentation.
The “cc…cc” file name is of acceptable length, the others are too long.
This filename is 216 characters, which is starting to get close to the 260-character limit on pathnames in the Win32 API. Maybe something internally is expanding your relative path to an absolute path or a realpath (e.g. expanding symlinks) and is hitting that limitation.
isfile(path) just calls isfile(stat(path)), and stat(path) calls uv_fs_stat from libuv. What does stat return on this path? If that’s not working, it may be a limitation of libuv.
I’ve never heard of such a limit on individual files in Windows. The only limit I can find mentioned anywhere online is on total path lengths. It’s more plausible to me that if your file length is sufficiently long, then you are hitting the MAXPATH limit.
To test this, try moving the file into a folder with a shorter name.
You may be right, it could be that I was not able to make the individual file name longer
because the file explorer counted all the characters in the absolute path. Which means that the relative path
length was immaterial, because the system always used the limit on the absolute path.
By the way, I set LongPathsEnabled in the registry, to no avail.
So now I am switching over to WSL 2. Windows is a best in class operating system? My foot!