Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 76832 invoked from network); 4 Mar 2007 16:45:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2007 16:45:15 -0000 Received: (qmail 4654 invoked by uid 500); 4 Mar 2007 16:45:21 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 4434 invoked by uid 500); 4 Mar 2007 16:45:21 -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 4423 invoked by uid 99); 4 Mar 2007 16:45:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 08:45:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 08:45:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF985714339 for ; Sun, 4 Mar 2007 08:44:50 -0800 (PST) Message-ID: <22511134.1173026690979.JavaMail.jira@brutus> Date: Sun, 4 Mar 2007 08:44:50 -0800 (PST) From: =?utf-8?Q?Holger_Hoffst=C3=A4tte_=28JIRA=29?= To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (IO-77) [io] add a convenience FileUtils.move(File src, File dest) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-77?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:comment-tabpanel#action_12477804 ]=20 Holger Hoffst=C3=A4tte commented on IO-77: ------------------------------------- Here's my vote to do the copying with NIO instead of buffer slinging, if at= all possible. Not sure if that would conflict with the targeted base JDK v= ersion? > [io] add a convenience FileUtils.move(File src, File dest) > ---------------------------------------------------------- > > Key: IO-77 > URL: https://issues.apache.org/jira/browse/IO-77 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 1.0 > Environment: Operating System: other > Platform: Other > Reporter: nicolas de loof > Priority: Minor > Fix For: 1.4 > > Attachments: patch_io.txt > > > I'm using FileUtils as it partially solves the missing "move" method for = File, > that is so simple to do in unix shell. > A full implementation in FileUtils may be great : > static boolean FileUtils.move(File src, File dest) > throws IOException > { > boolean rename =3D src.renameTo(dest); > if (!rename) > { > copyFile(file, dest); > file.delete(); > } > } --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org