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

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

Shankar Selvam created TWILL-156:
------------------------------------

             Summary: 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)