Hi,
Just curious.
Given a situation where FindFirst/FindNext returns 0 (=succes), under
which circumstance can the TSearchRec.Name become an empty string?
I'm asking because we have code in our codebase (fpc/lazarus) like:
=======
if FindFirst(CurSrcDir+AllFilesMask,DeleteMask,FileInfo)=0 then
Try
repeat
// check if special file
if (FileInfo.Name='.') or (FileInfo.Name='..') or
(FileInfo.Name='') then
continue;
========
Never saw that on Windows or Linux, but since fpc supports more
platforms, maybe some of them may return an ampty string for
TSearchRec.Name?
--
Bart
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal