Tarun Kapoor wrote:
> By the way...
>
> test.txt does exist
>
> Disclaimer
>
> This e-mail and any attachments is confidential and intended solely for the
> use of the individual(s) to whom it is addressed. Any views or opinions
> presented are solely those of the author and do not necessarily
By the way...
test.txt does exist
Disclaimer
This e-mail and any attachments is confidential and intended solely for the use
of the individual(s) to whom it is addressed. Any views or opinions presented
are solely those of the author and do not necessarily represent those of
Waterstone Capita
---
Code
--
remotepath = "/incoming"
f = FTP(host)
f.login(username,password)
f.cwd(remotepath)
localfile ="C:\\test.txt"
fd = open(localfile,'rb')
path,filename = os.path.split(localfile)
f.storbinary('STOR %s' % filename,fd)
fd.close()
f.quit