commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shon Vella (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-481) Default moveTo does not work for non-empty directories when it can't be done via renaming.
Date Wed, 31 Jul 2013 19:01:48 GMT

    [ 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

Mime
View raw message