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

FileUtils.sizeOfDirectory(File) throws IllegalArgumentException on symlink that does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.11.0
    • Utilities
    • None

    Description

      FileUtils.isSymlink(File) will throw an IllegalArgumentException if the symbolic link does not exist. FileUtils.sizeOfDirectory(File) ignores any exceptions that are from the symbolic link. I added another catch to ignore IllegalArgumentException.

      Attachments

        1. IO-449.diff
          0.6 kB
          Steven Christou

        Activity

          People

            Unassigned Unassigned
            schristou88 Steven Christou
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: