Re: List all files using FTP
- From: "Giampaolo Rodola'" <gnewsg@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 07:20:15 -0700 (PDT)
On 6 Mar, 18:46, Anders Eriksson <andi...@xxxxxxxxx> wrote:
Hello,
I need to list all the files on myFTPaccount (multiple subdirectories). I
don't have shell access to the account.
anyone that has a program that will do this?
// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
If you mean listing ALL files including those contained in sub
directories if the server supports globbing you can issue a "STAT *"
command and receive the list of all files on the command channel in an
"ls -lR *"-like form.
Not tested:
an "ls -lR *" is expected to comeimport ftplib
f = ftplib.FTP()
f.connect('ftpserver.domain', 21)
f.login()
f.sendcmd('STAT *')
.
- Prev by Date: Re: best way to host a membership site
- Next by Date: Re: how to convert a multiline string to an anonymous function?
- Previous by thread: PIL and IPTC
- Next by thread: new free fiction
- Index(es):
Relevant Pages
|