Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 91192 invoked from network); 4 Feb 2005 06:15:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Feb 2005 06:15:49 -0000 Received: (qmail 94799 invoked by uid 500); 4 Feb 2005 06:15:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 94784 invoked by uid 500); 4 Feb 2005 06:15:46 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 94771 invoked by uid 99); 4 Feb 2005 06:15:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO application.porta.de) (62.153.151.106) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Feb 2005 22:15:44 -0800 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id CD735166F85 for ; Fri, 4 Feb 2005 07:15:40 +0100 (CET) Received: from application.porta.de ([127.0.0.1]) by localhost (application.porta.de [127.0.0.1]) (amavisd-new, port 10027) with LMTP id 32577-10-5 for ; Fri, 4 Feb 2005 07:15:34 +0100 (CET) Received: from [172.16.228.138] (unknown [172.16.228.138]) by application.porta.de (Postfix) with ESMTP id 745A1166F56 for ; Fri, 4 Feb 2005 07:15:34 +0100 (CET) From: Mihael Knezevic Reply-To: m.knezevic@porta.de To: "Jakarta Commons Users List" Subject: Re: NET FTP Date: Fri, 4 Feb 2005 07:15:04 +0100 User-Agent: KMail/1.7.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502040715.04342.m.knezevic@porta.de> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N why not work with the listNames() or listFiles() method and work with the returned array? Am Donnerstag, 3. Februar 2005 19:21 schrieb Jacob, Thomas (Trinity): > Hi > I am using FTPclasses. > And to get the list of files in a path with wildchar characters, I am using > the listFiles(String) function > > When I give ftpclient.listFiles("*.zip") it gives me the list of .zip files > in that directory in FTP server. THis works fine. But this is case > sensitive. For example, if the file has a .ZIP file extension, it does not > return the file name. > > If the file name comparison can be made case insensitive, it would be great, > may be with an additional parameter to indicate that it is case insensitive. > > If you can show me which function to modify in the source, then I can make > changes in the source to do a string compare case insensitive or after doing > toUpper on both the file name and the wild char string. > > Thanks > > > Thomas K. Jacob > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org