[ftputil] Ftputil and ftp.gnome.org
MailingList SVR
lists at svrinformatica.it
Mon Apr 27 16:56:45 CEST 2009
Hi Stefan,
seems there are problems with ftp.gnome.org too
with ftputil (only a directory is found):
import ftputil
conn=ftputil.FTPHost('ftp.gnome.org','anonymous','pippo at pippo.com')
conn.listdir('/')
['pub']
with standard python ftplib (all directory are listed)
ftp = ftplib.FTP('ftp.gnome.org')
ftp.login()
'230 Login successful.'
ftp.retrlines('LIST')
-rw-r--r-- 1 ftp ftp 1001 May 07 2007 HEADER.html
lrwxrwxrwx 1 ftp ftp 3 Sep 18 2008 Public -> pub
drwxr-xr-x 2 ftp ftp 8 Apr 15 18:43 about
drwxrwxr-x 11 ftp ftp 11 Apr 14 20:19 cdimage
drwxr-xr-x 2 ftp ftp 3 Jun 14 2006 conspiracy
lrwxrwxrwx 1 ftp ftp 22 Sep 18 2008 debian -> cdimage/.debian-mirror
lrwxrwxrwx 1 ftp ftp 16 Sep 18 2008 debian-cd -> cdimage/release/
lrwxrwxrwx 1 ftp ftp 20 Sep 18 2008 debian-non-US -> mirror/debian-non-US
-rw-r--r-- 1 ftp ftp 318 Mar 21 2005 favicon.ico
drwxr-xr-x 27 ftp ftp 32 Apr 15 18:43 mirror
drwxr-xr-x 4 ftp ftp 15 Dec 19 14:31 pub
lrwxrwxrwx 1 ftp ftp 23 Sep 18 2008 releases -> mirror/ubuntu-releases/
-rw-r--r-- 1 ftp ftp 445 Mar 06 2007 robots.txt
lrwxrwxrwx 1 ftp ftp 13 Sep 18 2008 ubuntu -> mirror/ubuntu
-rw-r--r-- 1 ftp ftp 1037 Aug 22 2001 welcome.msg
-rw-r--r-- 1 ftp ftp 1136 Apr 19 2001 welcome2.msg
'226 Directory send OK.'
ftp.dir()
-rw-r--r-- 1 ftp ftp 1001 May 07 2007 HEADER.html
lrwxrwxrwx 1 ftp ftp 3 Sep 18 2008 Public -> pub
drwxr-xr-x 2 ftp ftp 8 Apr 15 18:43 about
drwxrwxr-x 11 ftp ftp 11 Apr 14 20:19 cdimage
drwxr-xr-x 2 ftp ftp 3 Jun 14 2006 conspiracy
lrwxrwxrwx 1 ftp ftp 22 Sep 18 2008 debian -> cdimage/.debian-mirror
lrwxrwxrwx 1 ftp ftp 16 Sep 18 2008 debian-cd -> cdimage/release/
lrwxrwxrwx 1 ftp ftp 20 Sep 18 2008 debian-non-US -> mirror/debian-non-US
-rw-r--r-- 1 ftp ftp 318 Mar 21 2005 favicon.ico
drwxr-xr-x 27 ftp ftp 32 Apr 15 18:43 mirror
drwxr-xr-x 4 ftp ftp 15 Dec 19 14:31 pub
lrwxrwxrwx 1 ftp ftp 23 Sep 18 2008 releases -> mirror/ubuntu-releases/
-rw-r--r-- 1 ftp ftp 445 Mar 06 2007 robots.txt
lrwxrwxrwx 1 ftp ftp 13 Sep 18 2008 ubuntu -> mirror/ubuntu
-rw-r--r-- 1 ftp ftp 1037 Aug 22 2001 welcome.msg
-rw-r--r-- 1 ftp ftp 1136 Apr 19 2001 welcome2.msg
however
ftp.dir('/')
drwxr-xr-x 4 ftp ftp 15 Dec 19 14:31 pub
give the same results as ftpdir, a workaroud is
ftp.cwd(path)
ftp.dir() --- without specify path,
can you apply this to ftputil?
regards
Nicola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/ftputil/attachments/20090427/ba0a8f13/attachment.htm
More information about the ftputil
mailing list