I have an FTP site containing very large files scattered among smaller files.

I want to download the entire FTP contents, but limit the amount downloaded for each file to 10 MB or so.

So all files less than 10 MB will be intact, but all files larger than 10 MB will only get the first 10 MB of data.

Is this at all possible? If not, is there a way to download all files smaller than 10 MB?

  • curl should be able to do this... not sure exactly what's necessary offhand; i'll try to look it up later. Apr 21, 2010 at 2:52

3 Answers 3


I can use cURL to do it.

It has an option, '-r/--range', which allows me to specify a byte range of filesize.

This will ensure that I will get the first 10 MB of large files and the complete file for anything smaller.


To download all the files smaller than 10 MB you can do this if all the files are in a single folder (assumes you are using a GUI FTP client):

  • Sort the files by size - usually by clicking on the filesize header
  • Select the first file smaller than 10 MB
  • Hold Shift and select the last file. This will select the range of files.
  • Transfer those files

If the files are in multiple folders you'll have to repeat this for each folder.

  • this will copy the entire file. OP wants the first 10MB only.
    – RJFalconer
    Oct 9, 2010 at 9:12
  • That's true. This was an answer to the last question in the post. I've clarified the answer to say that. Oct 10, 2010 at 17:11
  • There are >1000 folders Dec 10, 2010 at 6:17

To answer you second option for skipping the large files, in FileZilla you can set up a filter based on file size, and use that to hide/skip files greater than 10 MB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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