Further to this thread (
http://forum.lazarus.freepascal.org/index.php/topic,26488.0.html) I have a different but related question about files that are in very long folder names that exceed 260 characters.
As well as copying these files from an already long but valid directory of, say 200 characters (now successfully - see thread linked above) to a new location that becomes longer than 260 characters (due to recreating the original path in the new loaction) I also have to SEARCH for them, in the first place.
What I have noticed is that FindAllFiles seems to return only those files in directories of say 250 characters or less. Unless I am using it incorrectly?
Is there a way to make FindAllFiles search the entire path which could feasibly be up to 32K in length (as supported by NTFS but not Windows unless use of \\?\ is prefixed)?