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

FileUtils.copyDirectoryToDirectory does not reflect srcDir in exception message when srcDir is not a directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.6
    • 2.7
    • Utilities
    • None

    Description

      When srcDir parameter to FileUtils.copyDirectoryToDirectory method is not a directory, exception message contains destDir instead of srcDir.

      Related issue is, that based on Javadocs one would expect IOException instead of IllegalArgumentException. Changing type of the exception would probably break some clients. Fixing message seems reasonable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Mikko Maunu Mikko Maunu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m