🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Traverse Directory

#19137
From: James D. Frentress
Date: Mon, 09 Mar 1998 00:00
11 lines
839 bytes
Troy A. Griffitts wrote:

> I've been trying to traverse all the files in a given directory.  Can
> anyone point me in the right direction?
>
>         -Troy.

String[] files = new File(SOME_PATH).list(new FileFilter("*"));

You'll have to implement a FileFilter for more creative filtering.
Technical Details
Message-ID: <3504AE58.EE668EAC@ForAWhile.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35048719.50E9825B@crosswire.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a75a3c24d528b533
X-Google-Attributes: gidf74b3,public
From: "James D. Frentress" <Broken@ForAWhile.com>
Subject: Re: Traverse Directory
Date: 1998/03/09
Message-ID: <3504AE58.EE668EAC@ForAWhile.com>
X-Deja-AN: 332492925
Content-Transfer-Encoding: 7bit
References: <35048719.50E9825B@crosswire.org>
X-Priority: 3 (Normal)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Microsoft
Newsgroups: borland.public.jbuilder.java.language