<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>To check if a directory exists you can use the function "DirectoryExists('/path/to/directory')". To traverse your filesystem, just use findfirst-findnext: </span><a href="http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html">http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html</a></div><div><br></div><div>Regards,</div><div>Leonardo M. Ramé<br>http://leonardorame.blogspot.com<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Timothy Groves
<the.tail.kinker@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, April 6, 2012 6:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [fpc-pascal] How to find a directory?<br> </font> </div> <br>
So the Powers That Be have decided that FSearch should never find a directory. Fantastic. So how *do* I find a directory (for example, to confirm if one exists?)<br>_______________________________________________<br>fpc-pascal maillist - <a ymailto="mailto:fpc-pascal@lists.freepascal.org" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>http://lists.freepascal.org/mailman/listinfo/fpc-pascal<br><br><br> </div> </div> </blockquote></div> </div></body></html>