I feel happy to meet you again in my second post of 2016. Recently I came across an issue where the Filezilla listing only 9998 files in the directory listing whereas the folder had more that 20000+ files in it.
The Filezilla forums said that there are no limits at the FTP client’s (Filezilla) end on number of files to be displayed during the directory listing
However, some FTP server configurations may have this setup to truncate the output list of files to 10000 files so that you can view only 9998 file listed in the directory listing.
What is that setting and How to change it?
The option name changes with the type of FTP server we use. Most commonly used FTP servers in Linux are Pure-FTPD and Pro-FTPD. Let us see the setup for PureFTPD
1) Open /etc/pure-ftpd.conf
2) Search for the Variable : LimitRecursion
3) You will find the below given line :
LimitRecursion 10000 8
Which means the file list output has been limited to 10000 files.
4) You can change this value to increase or decrease the Output limit.
Remember to restart the FTP service after changing the value.
5) You can find this limit being indicated in your FTP client itself through the following response lines:
Response: 150 Accepted data connection
Response: 226-Options: -a -l
Response: 226 Output truncated to 10000 matches
Status: Directory listing successful
The same operation is handled by ListOptions Directive in Pro-FTPD FTP server. You can read more about it in the URL below:
I hope you find this useful. I always welcome both positive and negative comments and suggestion to improve my posts.
Have a Great Day Friends !!! 😉 🙂 🙂