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

FileUtils.sizeOfDirectory can throw IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.5
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: