Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I help admin a website which runs on a shared host. The host uses ProFTP and is using the maxlist directive to limit the number of items returned in a directory listing. One other thing to note is that I don't have shell access to the server.

I'm currently attempting to place the entire site under version control (git). The server doesn't have this installed so I've decided that I'll pull the site onto a local server, put that under git and write a script that will use FTP to upload new versions of files.

The method I've decided to use to pull the site is to create a python script which uses the ftplib module to connect and transfer all files. I've tested it on a small scale and it works quite well, but unfortunately there are directories on the main site which have more than maxlist files, so as it stands my script won't be able to get the entire site. Does anyone know if there is any way to workaround the -maxlist- setting, or if there are other methods I can use to achieve what I need?

share|improve this question
add comment

1 Answer

You could try fetching the list of all files starting with a, then b and so on.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.