[comp.lang.pascal] Find directories only?

iam@waikato.ac.nz (09/13/90)

I am wondering if people know of some easy way to pick out directories in
Turbo Pascal 5.5?

I tried FFirst and FNext as specified in the manual but they also get files as
well as directories.

Alternatively if you point me to a pascal unit which does the same thing on
some FTP site that would help.

ts@uwasa.fi (Timo Salmi LASK) (09/13/90)

In article <1550.26efc4ed@waikato.ac.nz> iam@waikato.ac.nz writes:
>I am wondering if people know of some easy way to pick out directories in
>Turbo Pascal 5.5?
>I tried FFirst and FNext as specified in the manual but they also get files as
>well as directories.

If you look at the documentation more closely you will discover that
you can test for the file type.  Do as you did but pick only files
that have the directory attribute set. 

...................................................................
Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun