in reply to Sizes of copied files are not right

You may just need to add $ftp->binary(); before sending the files over. Otherwise it may be using text mode which may translate your \n to \r\n or vice versa.

...roboticus

When your only tool is a hammer, all problems look like your thumb.