Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE58A9744 for ; Mon, 16 Apr 2012 20:40:41 +0000 (UTC) Received: (qmail 40961 invoked by uid 500); 16 Apr 2012 20:40:41 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 40878 invoked by uid 500); 16 Apr 2012 20:40:41 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 40869 invoked by uid 99); 16 Apr 2012 20:40:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 20:40:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 20:40:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 16D9A39AEE5 for ; Mon, 16 Apr 2012 20:40:20 +0000 (UTC) Date: Mon, 16 Apr 2012 20:40:20 +0000 (UTC) From: "Gary D. Gregory (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <1647807702.30229.1334608820152.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <319266079.29987.1334605218903.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (IO-326) Add new FileUtils.sizeOf[Directory] APIs to return BigInteger MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary D. Gregory updated IO-326: ------------------------------- Fix Version/s: 2.4 Committed first cut as sizeOf[Directory]AsBigInteger > 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 > Fix For: 2.4 > > > 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