🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7261

sun.net.ftp.FtpClient - issueCommand problem

#7261
From: Petar Banicevic
Date: Thu, 28 Jun 2001 09:44
15 lines
1339 bytes
(sun.net.ftp.FtpClient - issueCommand problem)

Hi,

I need to issue "ls" ftp command to a ftp server.

I am using issueCommand("ls") and I want to get the results but I don't know
how. Since issueCommand() method returns int, not the stream, does anybody
know how to get the textual results (capture) from issueCommand method ???


PS:
I used list() method which worked fine and it returnned TelnetInputStream
but results depend of type of ftp server (nt ftp has different output then
unix, and it is problem to parse filenames)
Technical Details
Message-ID: <3b3b2e35_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8442c40f5ded80cc,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-28 06:31:11 PST
From: "Petar Banicevic" <petar_b@usa.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: sun.net.ftp.FtpClient - issueCommand problem
Date: Thu, 28 Jun 2001 11:44:40 +0200
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 12.98.142.222
Message-ID: <3b3b2e35_1@dnews>
X-Trace: dnews 993734197 12.98.142.222 (28 Jun 2001 06:16:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews