a question about my script

Fredrik Lundh fredrik at pythonware.com
Thu Aug 31 09:12:42 EDT 2006


"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 in directory.split("/"):
        ftp.cwd(d)

</F> 






More information about the Python-list mailing list