commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary D. Gregory (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IO-326) Add new FileUtils.sizeOf[Directory] APIs to return BigInteger
Date Mon, 16 Apr 2012 20:36:18 GMT

     [ https://issues.apache.org/jira/browse/IO-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary D. Gregory updated IO-326:
-------------------------------

    Summary: Add new FileUtils.sizeOf[Directory] APIs to return BigInteger  (was: Add or change
FileUtils.sizeOfDirectory API such that it does not overflow)
    
> Add new FileUtils.sizeOf[Directory] APIs to return BigInteger
> -------------------------------------------------------------
>
>                 Key: IO-326
>                 URL: https://issues.apache.org/jira/browse/IO-326
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>    Affects Versions: 2.3
>            Reporter: Gary D. Gregory
>
> 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
> -- ...?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message