🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7556

Re: findfirst() for nested directories

#7556
From: Stan Brown
Date: Sat, 09 Jan 1993 14:59
15 lines
1084 bytes
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!"
Technical Details
Message-ID: <C0LDo0.6tw@NCoast.ORG>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!ncoast!brown
References: <009664F4.AC5D6C80@Msu.oscs.montana.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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