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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Utilities
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              schristou88 Steven Christou
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: