home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!ncoast!brown
- From: brown@NCoast.ORG (Stan Brown)
- Subject: Re: findfirst() for nested directories
- Organization: Oak Road Systems, Cleveland Ohio USA
- Date: Sat, 9 Jan 1993 14:59:59 GMT
- Message-ID: <C0LDo0.6tw@NCoast.ORG>
- References: <009664F4.AC5D6C80@Msu.oscs.montana.edu>
- Lines: 15
-
- In article <009664F4.AC5D6C80@Msu.oscs.montana.edu> gcp1815@Msu.oscs.montana.edu writes:
- >How do I recognize/list the directory headings nested within
- >some arbitrary direcory? (using Borlandc C++).
- > Findfirst() and findnext(), using them as per the
- >"topic example" provided by borland, only seems to recognize
- >filnames. Is there some ffblk.d_name to refer to?
-
- Use FA_DIREC in the attribute argument. This will give you all normal
- files _and_ directories. Then you look at the attributes of each
- returned file to see whether it's a directory.
- --
- Stan Brown, Oak Road Systems brown@Ncoast.ORG
- Cleveland, Ohio, USA
-
- "Life! Don't talk to me about life!"
-