Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!hsdndev!cmcl2!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: Re: FindFirst Message-ID: <26535@adm.brl.mil> Date: 11 Apr 91 12:39:11 GMT Sender: news@adm.brl.mil Lines: 30 In article <1991Apr10.134936.13981@odin.diku.dk>, ballerup@diku.dk (Per Goetterup) wrote: >Try simply to search for directories using the 'Directory' attribute mask >and you'll not only find directories but also close to everything else (I >think, perhaps VolumeID's excluded). > >This is NOT directly a bug in TP because it also happens if you try the same >in assembler! - A bug in DOS it seems! > >Perhaps Borland COULD have included a work-around in their code by simply >checking the found file's attributes and search again if it didn't match... > >I do just that myself and it's not really a big bother, but still - it is >SUPPOSED to work...! I don't think this can be properly described as a "bug" in either TPas or DOS, since it is documented in each case. Whether Borland's FindFirst _should_ work so much like the equivalent DOS call is a different question, but at least it works the way the manual _says_ it does. Cheers-- --Karl +--------------------------------------------------------------------+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta GA 30093 USA | | Home of Epi Info 5.0 | +--------------------------------------------------------------------+