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 8550298A6 for ; Mon, 16 Apr 2012 19:40:40 +0000 (UTC) Received: (qmail 62086 invoked by uid 500); 16 Apr 2012 19:40:40 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 61996 invoked by uid 500); 16 Apr 2012 19:40:40 -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 61984 invoked by uid 99); 16 Apr 2012 19:40:40 -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 19:40:40 +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 19:40:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2AB1D39AD41 for ; Mon, 16 Apr 2012 19:40:19 +0000 (UTC) Date: Mon, 16 Apr 2012 19:40:19 +0000 (UTC) From: "Gary D. Gregory (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <366913124.29993.1334605219176.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <319266079.29987.1334605218903.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (IO-326) Add or change FileUtils.sizeOfDirectory API such that it does not overflow 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: ------------------------------- Summary: Add or change FileUtils.sizeOfDirectory API such that it does not overflow (was: Add or change FileUtils.sizeOfDirectory API that does not overflow) > Add or change FileUtils.sizeOfDirectory API such that it does not overflow > -------------------------------------------------------------------------- > > 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