<br><br><div><span class="gmail_quote">On 3/24/08, <b class="gmail_sendername">el stamatakos</b> <<a href="mailto:el_stamatakos@hotmail.com">el_stamatakos@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi,<br>
I have a function that has worked quite well in Windows. Now I
try to use it on Linux and it does not appear to be going into
subdirectories where the files are actually stored. The unit is below.
I use the following<br>
<br>
FindFile1.Filemask:='*.cfg';<br>
FindFile1.InSubFolders:=True;<br>
FindFile.Path:='/test/sup/Data'; <br></div></blockquote></div><br>
As others allready pointed out there are two problems. Firts the mask (*.* vs *) secondly the case-sensitivity.<br>
I wrote some class like you did that solves these problems.<br>
It will let you specify if the mask is linux or windows style, and it
uses an extended version of TMask to do filename matching. This will
let you specify wether the mask is case sensitive. (as anadded bonus my
class also excepts an exclusion mask, to exlude files from the serach,
and it will let you use sets (like [a..d,y,z] in filemask).<br>
I tested it on Linux and Win32.<br>
I could mail it (or put it somewhere on the web for you) if you're interested.<br>
<br>
Bart<br>