tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Symonds" <m...@symonds.net>
Subject Re: listFiles() 500 errors
Date Mon, 11 Feb 2002 19:55:52 GMT

----- Original Message ----- 
From: <myatt83@potsdam.edu>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Monday, February 11, 2002 11:41 AM
Subject: Re: listFiles() 500 errors



Hi,

> The best way I found to use listFles is like so:
> 
> File myfile = new File("/uploaddir/");
> File file[] = myfile.listFiles();
> 
> This way you don't have to set an initial size to the file[] in case the #
> of files in the directory exceed the size of the array. Don't know if this
> solves your problem, but I hope it helps.
>

Still getting the same error (which is so strange, java.io.* imports
just fine), its only listFiles() that causes the problem, as if it's
not there?

Thanks for the tip though, I have changed the code accordingly, 
anyway.  :)

-- 
Mark




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message