Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an FTP of very large files scattered among smaller files.

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

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

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

share|improve this question
curl should be able to do this... not sure exactly what's necessary offhand; i'll try to look it up later. – quack quixote Apr 21 '10 at 2:52

3 Answers 3

up vote 2 down vote accepted

Thanks to @quack quixote 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 10meg of large files and the complete file for anything smaller.

share|improve this answer

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 10Mb.

share|improve this answer

To download all the files smaller than 10MB 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.

share|improve this answer
this will copy the entire file. OP wants the first 10MB only. – RJFalconer Oct 9 '10 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. – Wayne Johnston Oct 10 '10 at 17:11
There are >1000 folders – Michael Galos Dec 10 '10 at 6:17

Your Answer


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.