Forum Moderators: phranque
I don't think there's a limitation on the number of files in a directory, for either the OS or any FTP client. This is a limitation of the FTP program you're using and the time it takes to compile the list every time you chdir.
I learned long ago that huge directories are a maintenance nightmare and counterproductive for this very reason. At this point you probably don't want to hear "create subdirectories" but even if you did get them all to display, there's that agonizing wait every time you want to chdir . . . .
For the current situation you could try getting your ISP to increase your FTP timeout, and make sure it's set to a higher number in your FTP client. But either way you look at it, it's a "wait" you can do without.
However, I never do a directory on the files, and if I do it's via SSH and I pipe the output to a file and then use GREP to find what I want.
Additionally, I only FTP files up to that specific directory using command line FTP instead of those GUI FTP programs which try to pretend it's a "folder" the subsequently choke and die with the heavy load of files. If I do need to upload with the GUI FTP for whatever reason, I upload the files into a blank "upload" directory and then move them to their final destination on the server which avoids that nonsense as well.
Typically, I'd say about 1K-4K files per directory is enough but I'm a glutton for punishment.
[edited by: incrediBILL at 2:41 am (utc) on Aug. 24, 2008]
[proftpd.org...]