Upload with FTP

Djordje Telebak djordje.telebak at telekom.yu
Thu Jan 29 10:02:42 EST 2004


Hi all

 

I'm trying to write a little python file for file upload.

 

I have wrote something like this

 

from ftplib import FTP

ftp = FTP('172.xxx.yyy.zzz')

ftp.login('login_name','password')

ftp.storlines('STOR PRE',something)

ftp.quit()

 

I don't know what is wrong and what I have to put instead of

something or to change i this line to make this work 

(to upload file PRE from let's say C:\ directory to some home dir.

on host 172.xxx.yyy.zzz).

 

BR

 

Djordje Telebak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040129/17b1b3d7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMSTP.gif
Type: image/gif
Size: 494 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20040129/17b1b3d7/attachment.gif>


More information about the Python-list mailing list