🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: List of files from remote host

#19319
From: Andrew Bennett
Date: Thu, 19 Feb 1998 00:00
37 lines
1629 bytes
Leo Crawford wrote:
> 
> Hello,
> 
> I am looking to provide the user with a list of files from a remote host,
> allow them to select one and then use it as an input file for some code I
> have written, which requires an InputStream.
> 
> This seems as if it should be very easy but I just can't work out how to get
> a list of files from a remote host.
> 
> Any help would be very gratefully appreciated.


Two approaches:  (I'm assuming an applet)

Create a URL, open it, and parse the result back into a list of
filenames.  This assumes the URL returns a file list.

Create a program that runs on the server, listening on a socket.
When a connection is made, it feeds a list to the client.

Hope that helps


Andrew
--
  Andrew Bennett
  abennett@borland.com

  Due to my workload, personal email more than likely won't get a reply.
  Support options are detailed at http://www.borland.com/devsupport/
  I am unable to answer support questions via email at this time.

  Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
  additional JBuilder support related help.
Technical Details
Message-ID: <34EC8476.3113292D@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6c9mnk$na210@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7653e53e278fac52
X-Google-Attributes: gidf74b3,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: List of files from remote host
Date: 1998/02/19
Message-ID: <34EC8476.3113292D@borland.com>
X-Deja-AN: 326681580
Content-Transfer-Encoding: 7bit
References: <6c9mnk$na210@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language