Commons IO
  1. Commons IO
  2. IO-264

FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial 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
        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
        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
        Maciej Biłas added a comment -

        Thanks!

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

        Closing, we released version 2.1.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development