🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Get list of files from directories.

#20102
From: Jim Grohn
Date: Mon, 03 Nov 1997 00:00
7 lines
767 bytes
The File object's list method gives a list of dirs & files.  I want the list
to be sorted by alphabetical dirs and then alphabetical files.    Is there a
easy and fast way to do this?

Every way I can think of involves creating a File object for every thing in
the list and sorting (making use of the File Object's isDirectory method.
Technical Details
Message-ID: <63jt4a$ogu4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,fc2f889ac47e9e63,start
X-Google-Attributes: gidf74b3,public
From: "Jim Grohn" <grohn@ozy.dec.com>
Subject: Get list of files from directories.
Date: 1997/11/03
Message-ID: <63jt4a$ogu4@forums.borland.com>
X-Deja-AN: 286704520
X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.language