Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site boring.UUCP Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!seismo!mcvax!boring!guido From: guido@boring.UUCP Newsgroups: net.micro.mac Subject: Re: Multiple Files and Standard File Package Message-ID: <6610@boring.UUCP> Date: Sun, 1-Sep-85 16:42:46 EDT Article-I.D.: boring.6610 Posted: Sun Sep 1 16:42:46 1985 Date-Received: Mon, 2-Sep-85 09:36:06 EDT References: <514@cmu-cs-k.ARPA> <2298@sdcrdcf.UUCP> Reply-To: guido@mcvax.UUCP (Guido van Rossum) Organization: "Stamp Out BASIC" Committee, CWI, Amsterdam Lines: 17 Apparently-To: rnews@mcvax.LOCAL In article <2298@sdcrdcf.UUCP> dennisg@sdcrdcf.UUCP (Dennis Griesser) writes: >[...] how can an application tell what files reside on a disk? >Even CP/M-80 allowed you to open with "ambigous file references" (wildcards), >but it seems that Mac programmers must read the disk directory. > >Is there a better way to find out what's on a disk? > >Will anyone post a sample source program that does this? Yes, you must read the disk directory, but you don't have to do it all yourself. There are quite powerful toolbox calls to easily get at all files on the disk without you having to know a bit about disk structure. I have posted some sample code that I ripped from my Lisa Hard Disk Backup Utility (soon to be posted!) to net.sources.mac. -- Guido van Rossum, CWI, Amsterdam (guido@mcvax.UUCP)