12-31-2023, 12:14 PM
Just saying _DirExists does not work with long pathnames won't cut it, so: (a semi-short justification)
I collect manga (read into it as comics not from the usual sources). Many languages are used. Among them is Japanese. A very likely encounter is a very long pathname. The Japanese authors tend to name a manga, with a history of it's content. When the kanji romanized title is created it could get long. When a translation group decide to translate (remember it's in Japanese) the manga title maybe English translated to something even longer.
example:
JP: A very long kanji title how Superman went to the beach with Lois, but meets up Lex Luthor / gang and a big battle ensues. <-- mind you this is long already.
would be translated to English as:
Eng: Superman is asked to go to the beach by Lois Lane and have a picnic. After they setup, Lex Luthor and is ominous gang show up and fight starts. After long battle Superman wins but asks Luthor to stay and enjoy the picnic. Lex agrees and says he will buy the steaks.
This is a silly problem, trans groups should more aware how long the titles get and shorten them. My problem they are stupid and I have a title with a 277 characters long pathname.
_DirExists fails on something that long.
final note: Why use _DirExists. Simple! To detect special characters (umlauts and such) in directory names. Shell out and capture the directory names. Do a _DirExists on the list. Anything that exists but still can't be tested with _DirExists. Contains special characters. I have to treat them specially different.
If you have read to this point you are either. 1) Bored with the New Years weekend. or 2) Really love QB64pe and want it to work correctly. I suspect a little of both.
The problem exists on windows. Windows will allow very long pathnames and many sub directories exceeding the 257 character limit. Won't complain until you try to copy or move it.
Thanks for reading this far.
ps. Newer versions of windows allow longer than 257, the caveat losing backwards compatibility to earlier versions.
I collect manga (read into it as comics not from the usual sources). Many languages are used. Among them is Japanese. A very likely encounter is a very long pathname. The Japanese authors tend to name a manga, with a history of it's content. When the kanji romanized title is created it could get long. When a translation group decide to translate (remember it's in Japanese) the manga title maybe English translated to something even longer.
example:
JP: A very long kanji title how Superman went to the beach with Lois, but meets up Lex Luthor / gang and a big battle ensues. <-- mind you this is long already.
would be translated to English as:
Eng: Superman is asked to go to the beach by Lois Lane and have a picnic. After they setup, Lex Luthor and is ominous gang show up and fight starts. After long battle Superman wins but asks Luthor to stay and enjoy the picnic. Lex agrees and says he will buy the steaks.
This is a silly problem, trans groups should more aware how long the titles get and shorten them. My problem they are stupid and I have a title with a 277 characters long pathname.
_DirExists fails on something that long.
final note: Why use _DirExists. Simple! To detect special characters (umlauts and such) in directory names. Shell out and capture the directory names. Do a _DirExists on the list. Anything that exists but still can't be tested with _DirExists. Contains special characters. I have to treat them specially different.
If you have read to this point you are either. 1) Bored with the New Years weekend. or 2) Really love QB64pe and want it to work correctly. I suspect a little of both.
The problem exists on windows. Windows will allow very long pathnames and many sub directories exceeding the 257 character limit. Won't complain until you try to copy or move it.
Thanks for reading this far.
ps. Newer versions of windows allow longer than 257, the caveat losing backwards compatibility to earlier versions.