Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 75302 invoked from network); 2 May 2006 19:57:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2006 19:57:47 -0000 Received: (qmail 36357 invoked by uid 500); 2 May 2006 19:57:43 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 36296 invoked by uid 500); 2 May 2006 19:57:43 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 36285 invoked by uid 99); 2 May 2006 19:57:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 12:57:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.223.48.51] (HELO mail.cirquedigital.com) (65.223.48.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 12:57:40 -0700 Received: from [10.10.3.101] (70-32-208-184.ontrca.adelphia.net [70.32.208.184]) by mail.cirquedigital.com (Postfix) with ESMTP id A458C2EE6A for ; Tue, 2 May 2006 12:57:18 -0700 (PDT) Message-ID: <4457B99E.1000702@cirquedigital.com> Date: Tue, 02 May 2006 12:57:18 -0700 From: Filip Defoort User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: [VFS] renaming file with only case differences References: <1134147274.27764.249431380@webmail.messagingengine.com> <4399BFD6.1030106@ops.co.at> <4399C466.7040008@ascii27.net> In-Reply-To: <4399C466.7040008@ascii27.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm running in the following problem: VFS doesn't seem to be able to rename a file to another name when only the case is different. On windows, since the file system is case insensitive, File.exists() returns true, which causes FileObject.moveTo() to actually delete the source file (since it's considered the same file as the target).... that's obviously not desirable... Anybody any ideas on how I can do a proper rename ? Would it be better to have a separeate renameTo method (not moveTo) that would not delete the target first ? Thanks in advance! - Filip --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org