Skip to content Skip to sidebar Skip to footer

Get More Than 10,000 Results By FTP.nlst() Python

I have 27425 files on FTP server. When I use ftp.nlst() get filename list, it always get 10000 results. How can I get more than 10000 results? from ftplib import FTP import os, sys

Solution 1:

It is probably not a client issue (your python program) but the server just cuts down the result set. See here for a similar problem.
Essentially you will most likely have to adjust some settings of your FTP server's configuration. If you don't have access to that then you may need to distribute your files to multiple directories.


Post a Comment for "Get More Than 10,000 Results By FTP.nlst() Python"