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] [Created] (VFS-481) Default moveTo does not work for non-empty directories when it can't be done via renaming.
Date Wed, 31 Jul 2013 18:59:48 GMT
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

Mime
View raw message