Commons IO
  1. Commons IO
  2. IO-326

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

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major 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
        • ...?
      1. IO-326.patch
        2 kB
        Bruno P. Kinoshita

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development