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 08:57:10 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15042739#comment-15042739 ]
Terence Yim commented on TWILL-156:
-----------------------------------
Fix in https://github.com/apache/incubator-twill/pull/72
> 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)