Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 70265 invoked from network); 11 Feb 2002 19:57:22 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Feb 2002 19:57:22 -0000 Received: (qmail 20349 invoked by uid 97); 11 Feb 2002 19:57:01 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 20319 invoked by uid 97); 11 Feb 2002 19:57:00 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 20308 invoked from network); 11 Feb 2002 19:57:00 -0000 Message-ID: <201401c1b336$1c38e0a0$0501a8c0@mark> From: "Mark Symonds" To: "Tomcat Users List" References: <3.0.6.32.20020211144104.00969ee8@potsdam.edu> Subject: Re: listFiles() 500 errors Date: Mon, 11 Feb 2002 11:55:52 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: To: "Tomcat Users List" 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: For additional commands: Troubles with the list: