Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-481

Default moveTo does not work for non-empty directories when it can't be done via renaming.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0
    • None
    • None

    Description

      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."

      Attachments

        Activity

          People

            Unassigned Unassigned
            svella Shon Vella
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: