[fpc-pascal] How to find a directory?

2012-04-06 Thread Timothy Groves
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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to find a directory?

2012-04-06 Thread Leonardo M . Ramé
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.kin...@gmail.com
To: FPC-Pascal users discussions fpc-pascal@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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to find a directory?

2012-04-06 Thread Timothy Groves

On 12-04-06 05:43 PM, Leonardo M. Ramé wrote:
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


Okay, thanks.  It seems I was looking for the answer in the wrong part 
of the manual.  :)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal