[fpc-pascal] How to find a directory?
    Leonardo M. Ramé 
    martinrame at yahoo.com
       
    Fri Apr  6 23:43:26 CEST 2012
    
    
  
To check if a directory exists you can use the function "DirectoryExists('/path/to/directory')". To traverse your filesystem, just use findfirst-findnext: http://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html
Regards,
Leonardo M. Ramé
http://leonardorame.blogspot.com
>________________________________
> From: Timothy Groves <the.tail.kinker at gmail.com>
>To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org> 
>Sent: Friday, April 6, 2012 6:35 PM
>Subject: [fpc-pascal] How to find a directory?
> 
>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?)
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120406/6447248f/attachment.html>
    
    
More information about the fpc-pascal
mailing list