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

FileUtils.sizeOfDirectory can throw IllegalArgumentException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      FileUtils.sizeOfDirectory has a small concurrency issue. Between the call to File.listFiles and the call to FileUtils.sizeOf, a file may be deleted. This can cause FileUtils.sizeOf to throw an IllegalArgumentException, indicating that the file does not exist.

        Attachments

        1. IO-389.patch
          0.6 kB
          Austin Doupnik

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              austind Austin Doupnik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: