- Joined
- Jan 14, 2011
- Messages
- 1
- Reaction score
- 0
Hello everyone,
I am a newbee on python. I have created a python script to connect to a remserver.
datfile is
['a.dat','b.dat']
which as you can see create a list. now I am passing this list to
but this lines returns an error:
typeerror: retrbinary() takes at least 3 arguments (2 given)
not sure what is looking for? thanks in advanced for anyhelp
I am a newbee on python. I have created a python script to connect to a remserver.
Code:
datfile = []
for dk in range(len(files)):
dfnt=files[dk]
dpst=dfnt.find('.dat')
if dpst == 15:
dlist = dfnt[:]
datfile.append(dlist)
datfile is
['a.dat','b.dat']
which as you can see create a list. now I am passing this list to
Code:
ftp.retrbinary('datfile')
but this lines returns an error:
typeerror: retrbinary() takes at least 3 arguments (2 given)
not sure what is looking for? thanks in advanced for anyhelp