Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!usc!ucsd!helios.ee.lbl.gov!nosc!crash!alen From: alen@crash.cts.com (Alen Shapiro) Newsgroups: comp.sys.mac.programmer Subject: Re: opendir() and readdir() Message-ID: <986@crash.cts.com> Date: 26 Dec 89 17:48:24 GMT References: <2618@draken.nada.kth.se> Reply-To: alen@crash.cts.com (Alen Shapiro) Organization: Crash TimeSharing, El Cajon, CA Lines: 27 In article <2618@draken.nada.kth.se> h+@nada.kth.se (Jon W{tte) writes: > >It's that time of the year again. > >I simply want to get the names of the files in adirectory. >No, I am no novice to mac programming, but I've let libraries >handle file I/O for me until now. I looked through IM IV, but >the HFS chapter is less than crystal clear on this point... > >Now, how do I search {a | the current} directory for file >names (and maybe types...) ? Any code pieces or hints are >welcome ! > The uupc sources implement the UNIX independent directory manipulation functions (opendir, readdir, closedir, etc.) I'm not sure as to their status for inclusion in other works but they WERE published on the net. If I don't get any mail telling me not to, I'll email the relevant bits to the requestor - this is posted to the net in case the request is of general interest. --alen the Lisa slayer (it's a long story) ...alen%shappy@crash.cts.com (a mac+ uucp host - what a concept) ps uupc v2.0 unofficial upgrade for THINK LSC4.0 has been posted to comp.binaries.mac - it may appear soon.