Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 58992 invoked from network); 4 Dec 2004 20:01:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Dec 2004 20:01:10 -0000 Received: (qmail 56793 invoked by uid 500); 4 Dec 2004 20:01:08 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 56569 invoked by uid 500); 4 Dec 2004 20:01:07 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 56552 invoked by uid 99); 4 Dec 2004 20:01:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of mfncooper@gmail.com designates 64.233.184.192 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 04 Dec 2004 12:01:05 -0800 Received: by wproxy.gmail.com with SMTP id 67so46045wri for ; Sat, 04 Dec 2004 12:01:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=LicMQQH3Qq3NlT6Xxr1G4sdLpknp4owLQS8hiIvGfXM+1YZ6B5/phFHPcljuejYIFdxqr/KR9O1iaa9rXO7nSHitIXa8/68NVYm10XJ5aiT9G0E+mtmoZ3jZ89yiaQVsd3h9oc4aUp9E1VbZI/pH8WnECQ9SLDX/Ey8b+m19Uuo= Received: by 10.54.57.10 with SMTP id f10mr457203wra; Sat, 04 Dec 2004 12:01:00 -0800 (PST) Received: by 10.54.57.44 with HTTP; Sat, 4 Dec 2004 12:01:00 -0800 (PST) Message-ID: <16d6c6200412041201738d989a@mail.gmail.com> Date: Sat, 4 Dec 2004 12:01:00 -0800 From: Martin Cooper Reply-To: Martin Cooper To: Jakarta Commons Developers List Subject: Re: [io] Filename case sensitive comparisons In-Reply-To: <008d01c4da39$468922c0$aa949a51@oemcomputer> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <008d01c4da39$468922c0$aa949a51@oemcomputer> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sat, 4 Dec 2004 19:41:38 -0000, Stephen Colebourne wrote: > I have added various methods to compare two filenames > - isExtension(filename) > - equals(filename1, filename2) > - equalsNormalized(filename1, filename2) > > These compare case sensitive on Unix and case insenstive on Windows. Is this > OK with everyone? Looks good to me. Would it be worthwhile to add a method that answers the question "are these filenames the same, but different in case?"? This wouldn't be useful on Unix, of course, but sometimes in Windows you care about the case. (For example, in a web app, WEB-INF *must* be in upper case.) > I will fix the Wildcard method to do the same if no-one objects. Fine with me. -- Martin Cooper > Stephen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org