Modify the number of files shown in a directory (PureFTP)
If you are running the PureFTP service on your server, there is a setting configured (LimitRecursion) that sets a maximum number of files that can be viewed within a directory when connecting using an FTP client. Instructions are provided below on how to modify this setting.
1) Log into your server via SSH as root.
2) Run the following command to open up the PureFTP configuration file in the nano text editor:
<syntaxhighlight lang="bash">nano /etc/pure-ftpd.conf</syntaxhighlight>
3) You will then want to find the following setting within the configuration file:
LimitRecursion
You can search in the nano text editor by hitting Ctrl+W, enter the text you're wanting to search for, and then hit Enter. The LimitRecursion setting line should look something similar to:
<syntaxhighlight lang="bash">LimitRecursion 2000 8</syntaxhighlight>
The first number indicates number of files displayed. The second number indicates the maximum subdirectories depth. You can edit these settings to be any size you want.
4) Once you've finished editing the PureFTP configuration file, hit Ctrl+o and then Enter to save the changes you made. You will then want to hit Ctrl+x to exit.
5) Restart the PureFTP service by running the following command:
<syntaxhighlight lang="bash">service pure-ftpd restart</syntaxhighlight>