[
https://issues.apache.org/jira/browse/VFS-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13725596#comment-13725596
]
Shon Vella commented on VFS-481:
--------------------------------
This didn't work in 1.x either, but it was even worse there because it did a
recursive delete after the non-recursive copy, thus deleting originals that
were not copied.
> Default moveTo does not work for non-empty directories when it can't be done
> via renaming.
> ------------------------------------------------------------------------------------------
>
> Key: VFS-481
> URL: https://issues.apache.org/jira/browse/VFS-481
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Shon Vella
>
> The default implementation of moveTo in AbstractFileObject has no chance of
> working for a non-empty folder in cases where it can't be done via a rename.
> This is because it calls it calls copyFrom with Selectors.SELECT_SELF which
> will not copy the descendants and doDelete, which is documented as only
> supposed to be called when "This file has no children, if a folder."
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira