FTP.retrlines help

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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top