Shon Vella created VFS-481:
------------------------------

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

Reply via email to