delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/15/02:15:19

From: Goh Yong Kwang <s6606555 AT mercury DOT np DOT ac DOT sg>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: readdir question
Date: Sat, 15 Aug 1998 13:28:49 +0800
Organization: Ngee Ann Polytechnic, Singapore
Lines: 67
Message-ID: <Pine.SOL.3.91.980815132555.16926A-100000@mercury>
References: <000401bdc3bd$8ec5b9c0$0b1f1bc4 AT enterprise-z> <Pine DOT SOL DOT 3 DOT 91 DOT 980815100458 DOT 14850A-100000 AT mercury>
NNTP-Posting-Host: mercury.np.ac.sg
Mime-Version: 1.0
NNTP-Posting-User: s6606555
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In-Reply-To: <Pine DOT SOL DOT 3 DOT 91 DOT 980815100458 DOT 14850A-100000 AT mercury> 

I've checked it out and the function is called file_tree_walk. Sorry for 
the misinformation.

----------------------------------
Many regards,
Goh Yong Kwang
96606555
3K
----------------------------------

On Sat, 15 Aug 1998, Goh Yong Kwang wrote:

> In-Reply-To: <000401bdc3bd$8ec5b9c0$0b1f1bc4 AT enterprise-z>
> 
> I think there's a function called Traverse or something. It helps you 
> to traverse a directory tree. It may help. Use info to find out how to 
> use it. I personally have not used it before. 
> 
> ----------------------------------
> Many regards,
> Goh Yong Kwang
> 96606555
> 3K
> ----------------------------------
> 
> On Sun, 9 Aug 1998, =?iso-8859-1?Q?Jorge_Iv=E1n_Meza_Mart=EDnez?= wrote:
> 
> > Hi,
> > 
> > I have to read the file names from certain directory, I am using:
> > 
> > |#include <dirent.h>
> > |struct dirent *readdir(DIR *dir);
> > |
> > |DIR *d = opendir( argv[1] );
> > |
> > |while ((de = readdir(d)))
> > |    cout >> de->d_name;
> > |
> > |closedir ( d );
> > 
> > but it does not read from other subdirectories, just the directory that I
> > tell him and not its subdirectories.
> > 
> > from the "LibC Reference" I understood that setting "__opendir_flags"
> > variable to "__OPENDIR_FIND_HIDDEN", the "opendir ( ... )" would seek for
> > files thru subdirectories, I added to my program:
> > 
> > extern int __opendir_flags;
> > __opendir_flags = __OPENDIR_FIND_HIDDEN;
> > 
> > but nothing changes, all is the same than before.
> > 
> > can you help me please ?
> > 
> > Jorge Iván Meza Martínez
> > jimeza AT usa DOT net
> > http://members.xoom.com/THP
> > 
> > 
> > 
> > 
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019