Hi:
I want to write a procedure to automatically upload some files for me, but
I'm getting stuck. Before I write my own gruesome put() function, I
wanted to check if there is an easier way.
Here's what I can do so far:[color=blue][color=green][color=darkred]
>>>import ftplib
>>>conn = ftplib.FTP('ftp .example.com')
>>>conn.login(u ser='userid', passwd='passwd' )
>>>conn.cwd('/var/www/html/incoming')[/color][/color][/color]
What do I do to send files?
I have three files I want to upload, but I'm not sure what to do. I hoped
to find a ftplib.put() method, but it looks like ftplib is a low-level
interface.
All help is welcome.
I want to write a procedure to automatically upload some files for me, but
I'm getting stuck. Before I write my own gruesome put() function, I
wanted to check if there is an easier way.
Here's what I can do so far:[color=blue][color=green][color=darkred]
>>>import ftplib
>>>conn = ftplib.FTP('ftp .example.com')
>>>conn.login(u ser='userid', passwd='passwd' )
>>>conn.cwd('/var/www/html/incoming')[/color][/color][/color]
What do I do to send files?
I have three files I want to upload, but I'm not sure what to do. I hoped
to find a ftplib.put() method, but it looks like ftplib is a low-level
interface.
All help is welcome.
Comment