using ftplib

John Salerno johnjsal at NOSPAMgmail.com
Tue May 2 20:24:09 CEST 2006


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 CHMOD), not even
> PORT or PASV (unless the specific SITE command being invoked requires a
> data transfer, which CHMOD shouldn't). But as Steve suggests, the best
> way to know for sure is to give it a whirl and see what happens :-)

Thanks. I sometimes forget I can experiment with the interactive 
interpreter, but I also didn't want to screw up anything on my server 
space by doing something weird! :)



More information about the Python-list mailing list