You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "Terence Yim (JIRA)" <ji...@apache.org> on 2015/12/05 09:28:10 UTC

[jira] [Resolved] (TWILL-156) LocalLocation using File.renameTo fails for Windows when the destination file exists

     [ https://issues.apache.org/jira/browse/TWILL-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Terence Yim resolved TWILL-156.
-------------------------------
    Resolution: Fixed

> LocalLocation using File.renameTo fails for Windows when the destination file exists
> ------------------------------------------------------------------------------------
>
>                 Key: TWILL-156
>                 URL: https://issues.apache.org/jira/browse/TWILL-156
>             Project: Apache Twill
>          Issue Type: Bug
>            Reporter: Shankar Selvam
>            Assignee: Shankar Selvam
>             Fix For: 0.7.0-incubating
>
>
> the LocalLocation implementation of renameTo uses File.renameTo(destination), In windows if the destination file exists already this fails and returns false. 
> We should use Files.move(source, target, options) and include option to replace existing files. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)