Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-04

How to find a directory?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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?)

Reply by email

Leonardo M. Ramé
to Timothy Groves

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

Show quoted text 13 lines
________________________________ From: Timothy Groves To: FPC-Pascal users discussions 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  -  http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email