home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11944 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.0 KB  |  26 lines

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