Re: using ftplib

2006-05-02 Thread John Salerno
Dave Hughes wrote: > As far as I recall your speculation is indeed correct: a TYPE command > is only necessary before a transfer (it's only used to transform data > passing over the secondary data connection). I'm reasonably certain you > don't need *anything* before a SITE command (like SITE CHMO

Re: using ftplib

2006-05-02 Thread Dave Hughes
Steve Holden wrote: > John Salerno wrote: > [...] > > > > So if I already have files on the server and I want to change file > > permissions, do I need to mess with TYPE A/TYPE I commands, or are > > those strictly for when you transfer files? Because I just did a > > quick test of changing fil

Re: using ftplib

2006-05-01 Thread Steve Holden
John Salerno wrote: [...] > > So if I already have files on the server and I want to change file > permissions, do I need to mess with TYPE A/TYPE I commands, or are those > strictly for when you *transfer* files? Because I just did a quick test > of changing file permissions through my FTP pro

Re: using ftplib

2006-05-01 Thread John Salerno
Dave Hughes wrote: > Indeed. FTP is a tricky (and _very_ old) protocol that does things in a > very different manner to the later (simpler) protocols like HTTP. Not > sure how familiar you are with FTP, so my apologies if I wind up > repeating stuff you know already: Thanks very much, all that in

Re: using ftplib

2006-05-01 Thread Dave Hughes
John Salerno wrote: > I'm experimenting with this now and I'm a little confused about > transferring commands. This might be more of an FTP question than > strictly Python, but it's still related to how to use the ftplib > methods. > > Anyway, if what I want to do is send a command to change the

using ftplib

2006-05-01 Thread John Salerno
I'm experimenting with this now and I'm a little confused about transferring commands. This might be more of an FTP question than strictly Python, but it's still related to how to use the ftplib methods. Anyway, if what I want to do is send a command to change the file permission settings of a