Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-264

FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: Utilities
    • Labels:
      None

      Description

      FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

        Activity

        Hide
        niallp Niall Pemberton added a comment -

        Thanks, I updated the javadocs for the following methods:

        • moveFile()
        • moveFileToDirectory()
        • moveDirectory()
        • moveToDirectory()
        • moveDirectoryToDirectory()

        http://svn.apache.org/viewvc?view=revision&revision=1080825

        Show
        niallp Niall Pemberton added a comment - Thanks, I updated the javadocs for the following methods: moveFile() moveFileToDirectory() moveDirectory() moveToDirectory() moveDirectoryToDirectory() http://svn.apache.org/viewvc?view=revision&revision=1080825
        Hide
        maciejb Maciej Biłas added a comment -

        Thanks!

        Show
        maciejb Maciej Biłas added a comment - Thanks!
        Hide
        garydgregory Gary Gregory added a comment -

        Closing, we released version 2.1.

        Show
        garydgregory Gary Gregory added a comment - Closing, we released version 2.1.

          People

          • Assignee:
            niallp Niall Pemberton
            Reporter:
            maciejb Maciej Biłas
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development