[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.tm] Re: Empty List when using FTP

I've since written an Eclipse plugin that uses the Apache Commons FTP library and I had to write my own parser to get it to work with uClinux.

If you want to get your hands dirty you'll need to create a class that implements FTPFileEntryParserFactory and returns object(s) that implement FTPFileEntryParser.

You can then construct an FTPClient with your new class:

  FTPClient ftp = new FTPClient();
  ftp.setParserFactory(new MyFtpEntryParserFactory());

Hope this helps you or anyone else with the same issue!

Cheers,

Jon


leandro schmitz wrote:
Hello,
I've the same problem with LIST command in FTP connection.
FTP don't list the directors and files in the LIST command request in a uClinux target.


   When I use a Standart Linux FTP Client the LIST command work:
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
bin      dev      drivers  etc      home     lib      mnt      proc
sbin     sys      tmp      usr      var
226 Transfer complete.

  When I use Eclipse RSE FTP Client the LIST command doesn't work:
LIST -a
150 Opening BINARY mode data connection for '/bin/ls'.

226 Transfer complete.

A dump observation:
- FTP Client LIST response is in ASCII mode, and in RSE is in BINARY mode.

Pheraps everyone already noted it, but I'd like reforce it.

Tks