commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IO-157) [FileUtils] Return target File from copyFileToDirectory()
Date Thu, 07 Jan 2010 01:54:54 GMT

    [ https://issues.apache.org/jira/browse/IO-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797442#action_12797442
] 

Sebb commented on IO-157:
-------------------------

Not sure I understand why changing a method to return File rather than void can break binary
compatibility.

Any existing code that uses the void method will still work; the return value will just be
ignored.

> [FileUtils] Return target File from copyFileToDirectory()
> ---------------------------------------------------------
>
>                 Key: IO-157
>                 URL: https://issues.apache.org/jira/browse/IO-157
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.4
>            Reporter: Kenny MacLeod
>            Assignee: Niall Pemberton
>            Priority: Minor
>             Fix For: 2.0
>
>
> It would be useful if the FileUtils.copyFileToDirectory() method returned the target
file to which it does the copy.  Currently, it creates the target File object, passes it to
copyFile(), and discards the reference.  This could just be returned from the method instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message