commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-77) [io] add a convenience FileUtils.move(File src, File dest)
Date Thu, 13 Jul 2006 03:16:30 GMT
     [ http://issues.apache.org/jira/browse/IO-77?page=all ]

Henri Yandell updated IO-77:
----------------------------

    Bugzilla Id:   (was: 35140)
    Fix Version: 1.3

> [io] add a convenience FileUtils.move(File src, File dest)
> ----------------------------------------------------------
>
>          Key: IO-77
>          URL: http://issues.apache.org/jira/browse/IO-77
>      Project: Commons IO
>         Type: Improvement

>     Versions: 1.0
>  Environment: Operating System: other
> Platform: Other
>     Reporter: nicolas de loof
>     Priority: Minor
>      Fix For: 1.3
>  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 = src.renameTo(dest);
>     if (!rename)
>     {
>         copyFile(file, dest);
>         file.delete();
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message