At Thursday 31/8/2006 10:01, alper soyler wrote:
I changed the script as you wrote below:
directory = 'pub/kegg/genomes'
Sorry, in the original comment I said "change it to be an absolute
path" but didn't write it well.
This line should read:
directory = '/pub/kegg/genomes'
Gabriel Gene
Hi,I changed the script as you wrote below:from ftplib import FTP
def handleDownload(block):
file.write(block)
print ".", ftp = FTP('ftp.genome.jp')
print ftp.login()
directory = 'pub/kegg/genomes'ftp.cwd(directory)k=0for direct in ftp.nlst(): curdir = '%s/%s' % (directory, direct)
"alper soyler" wrote:
> directory = 'pub/kegg/genomes'
> ftp.cwd(directory)
> ftplib.error_perm: 550 pub/kegg/genomes/aae: No such file or directory
> However, in ftp.genome.jp/pub/kegg/genomes/ site, there is 'aae' directory.
> What can be the reason?
try doing the cwd in pieces:
for d i
Hi,I changed the script as you wrote below:from ftplib import FTP
def handleDownload(block):
file.write(block)
print ".", ftp = FTP('ftp.genome.jp')
print ftp.login()
directory = 'pub/kegg/genomes'ftp.cwd(directory)k=0for direct in ftp.nlst(): curdir = '%s/%s' % (directory, direct)
At Tuesday 29/8/2006 03:55, alper soyler wrote:
I am trying to get some files from an ftp site by ftplib module and
I wrote the below script. However I have a problem. With my script,
I login to ftp.genome.jp site. then, I am changing the directory to
pub/kegg/genomes/afm and I am downloading