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