[comp.sys.mac.programmer] How many files can be put into a folder?

yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) (02/03/90)

>In article <3092@dogie.macc.wisc.edu> you wrote about having 356 files
>in a single folder on an 800K disk, but Finder will only show you 145 of
>them on certain slotted Mac's and the portable, while it will show all
>of them on the +, SE, and SE/30.  I ask a couple of questions here by
>email, but I suggest that you post the answers, because I'm sure a lot
>of people will be interested:
> 
>1.  If you do a Get Info in the finder, how many files does it tell
>you are in the folder?

Only 145.

>2.  Can you get to any file with the Standard File dialog, as to open it
>in a text editor (if they are text files), or can you only get to the ones
>that the Finder shows you?

No, the open dialog does not display any extra files.

>3.  Can you open any of the files with your application with a File Manager
>PBOpen call, or only the ones that the Finder shows you?

Tell the truth, I'm not the one programming this app. I'm just passing 
this on from a frustrated geneticist who's doing the testing for someone 
else who's writing the app. moof.

>4.  If you drag the folder to your hard disk, do all the files get
>moved, or only the 145 that the Finder showed you?

No. This was how the prob was originally discovered. The copy of the 
folder finished so quickly that my client was suspicious something went 
wrong. When he examined the folder copied to the hd, he then noticed the 
missing files.

>As you can probably guess, I'm trying to see whether the problem is in the
>File Manager, or in the Finder.  It's obviously much more serious in the
>former case than in the latter, though it is plainly a bug to be fixed in
>either case.

Seems to be not isolated to the Finder. MacWrite, Disinfectant 1.6, et 
al, can only see 145. But First Aid Kit HFS has problems examining the 
diskette... which leads me to believe maybe the diskette is damaged? But 
if so, why does a Mac Plus succesfully see all the files? This could all 
just be a fluke, further examination is necessary...

>By the way, are you aware of the potential problems in having hundreds
>of tiny files for your application when users want to install the
>application and its data on a hard disk?  Space gets assigned to files
>on an 800K disk in half-K chunks.  But on, say, a 140K hard drive, space
>is allocated in 4K chunks, unless the software partitions the disk into
>multiple smaller volumes.  So your 356 tiny files could occupy 1.4
>megabytes or so on the user's 140 meg hard drive, or 2.8 meg on a 300
>meg drive, or twice as much if each file has both a data fork and a
>resource fork.  If your application is to be marketed commercially,
>you might want to reconsider your hundreds-of-little-files design.

Again, it ain't my program, but your advice is noted and has been passed 
on. This guy is transfering gobs of genetic DNA data from some ms-dos
machine to a mac using AFE. Each gob of data resides in one of these 
little files. His app is meant to analyze all the data. I suggested that 
he at very least use some folders to better organize his files. 

Thanks for the response.
- Ross

>Chris   (Christopher T. Jewell)   chrisj@netcom.uucp   apple!netcom!chrisj

>>>      Internet: yahnke@macc.wisc.edu        <<<
>>>   Mille voix chuchottent <<c'est vrai>>    <<<