Newsgroups: comp.os.msdos.djgpp From: Mark Habersack Subject: Re: 1 bug(?) open/readdir & glob Message-ID: Mime-Version: 1.0 Reply-To: grendel AT ananke DOT amu DOT edu DOT pl Cc: djgpp AT delorie DOT com Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: None provided In-Reply-To: <01b60b88$d68ba0c0$9000d6c1@bigpapa> Date: Sat, 21 Sep 1996 13:33:39 GMT Dj-Gateway: from mailing list djgpp AT delorie DOT com To: "Erik L. Jensen" Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reposting article removed by rogue canceller. On 20 Sep 1996, Erik L. Jensen wrote: >> > In djgpp it really doesn't matter whether you'll use findfirst/findnext >or >> > readdir. readdir() uses find... anyway. >> >> Yes, It doesnt matter , but the problem is why you mentioned about it. >> >> > >Infact, it does matter if you want to quickly get hold of information like >file size, attributes etc. Right, but I meant in terms of using find... vs readdir(). >A readir() followed by stat() is much more complicated (try going throug >the stat() code) and >does little more than findxxx anyway.. That's right, but to write Unix compatible code you have to use stat anyway... ********************************************************************** So if you ask me how do I feel inside, I could honestly tell you we've been taken on a very long ride. And if my owners let me have free time some day, with all good intention I would probably run away! Clutching the short straw... ******************* http://ananke.amu.edu.pl/~grendel ****************