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

Add new FileUtils.sizeOf[Directory] APIs to return BigInteger

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • Utilities
    • None

    Description

      FileUtils.sizeOfDirectory will return a negative number when the size count goes past Long.MAX_VALUE.

      Counting with a BigInteger will solve this issue. Options:

      • Change the signature of FileUtils.sizeOfDirectory() to return a BigInteger. This will obviously break BC.
      • Create a new API to return a BigInteger. What would this new API be called?
        • sizeOfDirectoryAsBigInteger
        • bigIntegerSizeOfDirectory
        • largeSizeOfDirectory
        • ...?

      Attachments

        1. IO-326.patch
          2 kB
          Bruno P. Kinoshita

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: