FTP problem: can’t see or download more than 1998 files in a single directory


My directory on the hosting server contains more than 3000 files, and I tried to download the whole content via an FTP program (I use Cyberduck and Filezilla). But I can only see 1998 files, what’s going on?


05-04-08 05:57 PM – Post#77222
In response to sb1963

Just as you can run different FTP client software on your local machine service providers can run different FTP server software packages on their server. So defaults may differ depending on your webhost, their FTP server software, the modifications you have made etc.

The FTP software we run on our servers, and which is run on all cPanel servers by default, does have a 1998 file limit per directory.

However on some of our servers we have modified the configuration to allow for a higher file limit. I’d have to check to be sure, but off the top of my head I believe the server Claude is on is set to have a 5000 file limit in FTP, for example.

So in short it really comes down to your host. You can ask them to change the limit, though every host is different as to their policies and what configuration changes they will make.

Also if your host provides a popular control panel like cPanel there should be backup options within the panel to allow you to download a compressed backup.

Source: http://www.fusionbb.com/forum/showtopic.php?tid/10398/pid/77236/


Solution #1: Download a home directory backup via cpanel. Extract the backup and get your folder from there.


Solution #2: change the FTP file limit via SSH or PHP.

You’ll have to do it via SSH. Run this command in SSH:

find . -type f -exec chmod 644 {} \;

If you don’t have SSH, put this in to a php file (call it chmod.php if you want and place it in your public_html directory):

PHP Code:

<?PHP echo shell_exec(“find . -type f -exec chmod 644 {} \;”); ?>

Either way that should find all files and chmod them to 644.

Source: http://forums.site5.com/showthread.php?t=8013


Solution #3: request your web host to raise the file limit per directory. Don’t just ask for this via Live Chat. Write them a request email, they will do it for you. (Legally, they can’t refuse to do it!)


More info:





%d bloggers like this: