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

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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Utilities
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: