[Pythonmac-SIG] more ftplib problems/info

Ian Caven i.caven@ieee.org
Fri, 28 Jul 2000 14:51:25 -0700


Chris_Barker@hazmat.noaa.gov  Fri Jul 28 21:22:51 2000 wrote:

>
>This makes me wonder: Has anyone actaully used ftplib on the mac before??
>

Yes, we have used it extensively for binary transfers under version 1.5.2c1.

>
>####  TEST SCRIPT #####
[]

>
>server.storbinary('STOU '+filename,file,1024)
>

I haven't seen this form of the command before.  We use:

server.storbinary('STOR '+filename,file,1024)

>
>file = open(filename,'r')
>

This line should read:

file = open(filename,'rb')

for binary transfers.  (I have made this mistake several times).




---
Ian Caven
i.caven@ieee.org