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?
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Fix Version/s||2.4 [ 12320769 ]|
|Summary||Add or change FileUtils.sizeOfDirectory API such that it does not overflow||Add new FileUtils.sizeOf[Directory] APIs to return BigInteger|
|Field||Original Value||New Value|
|Summary||Add or change FileUtils.sizeOfDirectory API that does not overflow||Add or change FileUtils.sizeOfDirectory API such that it does not overflow|