[Tutor] ftplib

Andres Gelabert andresg@umich.edu
Mon, 5 Jun 2000 03:51:42 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_002B_01BFCEA1.5C7214A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Greetings,
I'm new to both Python and this list.  My first program involves using =
ftp to transfer files from one NT server to another one.  The files =
transfer successfully, but the quit() command produces "TypeError: call =
of non-function (type string)," whereas close() and sendcmd('bye') =
produce NameErrors. =20
I'd appreciate someone's pointing out what I'm doing wrong.

Andres

------=_NextPart_000_002B_01BFCEA1.5C7214A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Greetings,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm new to both Python and this =
list.&nbsp; My=20
first program involves using ftp to transfer files from one NT server to =
another=20
one.&nbsp; The files transfer successfully, but the quit() command =
produces=20
"TypeError: call of non-function (type string)," whereas close() and=20
sendcmd('bye') produce NameErrors.&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'd appreciate someone's pointing out =
what I'm=20
doing wrong.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andres</FONT></DIV></BODY></HTML>

------=_NextPart_000_002B_01BFCEA1.5C7214A0--