Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 5854 invoked from network); 9 Jan 2008 17:26:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2008 17:26:57 -0000 Received: (qmail 4897 invoked by uid 500); 9 Jan 2008 17:26:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 4836 invoked by uid 500); 9 Jan 2008 17:26:44 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 4811 invoked by uid 99); 9 Jan 2008 17:26:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 09:26:44 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 09 Jan 2008 17:26:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 99FF2714247 for ; Wed, 9 Jan 2008 09:26:34 -0800 (PST) Message-ID: <3383131.1199899594626.JavaMail.jira@brutus> Date: Wed, 9 Jan 2008 09:26:34 -0800 (PST) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (IO-77) Add convenience moveFile() / moveDirectory methods to FileUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-77?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Gregory updated IO-77: --------------------------- Summary: Add convenience moveFile() / moveDirectory methods to FileUtils (was: Add convenience moveFille() / moveDirectory methods to FileUtils) > Add convenience moveFile() / moveDirectory methods to FileUtils > --------------------------------------------------------------- > > Key: IO-77 > URL: https://issues.apache.org/jira/browse/IO-77 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 1.3.2 > Environment: Operating System: other > Platform: Other > Reporter: nicolas de loof > Assignee: Niall Pemberton > Priority: Minor > Fix For: 1.4 > > Attachments: IO-77.patch, 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 = src.renameTo(dest); > if (!rename) > { > copyFile(file, dest); > file.delete(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.