[1950] in java-interest
Re: Some comments on Java's File class....
daemon@ATHENA.MIT.EDU (Ken Arnold - Sun Labs)
Wed Sep 20 14:27:07 1995
Date: Wed, 20 Sep 1995 11:10:17 -0400
From: arnold@cocolat.East.Sun.COM (Ken Arnold - Sun Labs)
To: meessen@cppm.in2p3.fr
Cc: java-interest@java.Eng.Sun.COM
>From Christophe Meesen:
>
>1. javadoc missed the [] in String list()[]. This is confusing. Fix javadoc
>or File class definition. Change into String[] list(); This is also more
>readable.
You are missing the doc style -- it is String[] list(), using the Java,
not the C-style, array declaration
>2. File.list lacks simple File.list( String ) method where the String would
>allow wild cards. Using FilenameFilter is a more general method but much
>more havier to use for the most common usage of a file list command. It
>would allow to do something like a File.list("*.java") call.
You could do the Java community a favor and write an implementaiton of
FilenameFilter that did, say, csh or ksh style globbing. That would solve
this problem most neatly.
>3. Where is the File.delete method ? We are unable to delete files. Did I
>miss it ?
Now that's a good question ...
Ken
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com