Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 7060 invoked from network); 22 Nov 2005 20:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Nov 2005 20:35:23 -0000 Received: (qmail 48212 invoked by uid 500); 22 Nov 2005 20:35:06 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 48022 invoked by uid 500); 22 Nov 2005 20:35:05 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 48011 invoked by uid 99); 22 Nov 2005 20:35:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 12:35:05 -0800 Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.227.215.170] (HELO chiron.lunarpages.com) (216.227.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Nov 2005 12:36:37 -0800 Received: from zammet2 by chiron.lunarpages.com with local (Exim 4.52) id 1Eeeqh-0006ZH-Kh; Tue, 22 Nov 2005 12:34:43 -0800 Received: from 170.201.180.136 ([170.201.180.136]) (SquirrelMail authenticated user fzlists@omnytex.com) by webmail.chiron.lunarpages.com with HTTP; Tue, 22 Nov 2005 15:34:43 -0500 (EST) Message-ID: <48082.170.201.180.136.1132691683.squirrel@webmail.chiron.lunarpages.com> In-Reply-To: References: Date: Tue, 22 Nov 2005 15:34:43 -0500 (EST) Subject: Re: FileSystemUtils From: "Frank W. Zammetti" To: "Jakarta Commons Developers List" Cc: commons-dev@jakarta.apache.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - chiron.lunarpages.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [32746 1232] / [47 12] X-AntiAbuse: Sender Address Domain - omnytex.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Your welcome :) (I wrote that function :) ) I think your right, a double version would certainly be appropriate. Kind of ashamed I missed that actually :( I wonder though, what would be the down-side to just having a double version only? (aside from backward-compatibility at this point)... Would it really result (potentially) in a loss of precision? Feel free to submit a patch, it seems, to me anyway, like an obvious thing to commit, although I am not a committer, so you'll have to convince others :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM: fzammetti Yahoo: fzammetti MSN: fzammetti@hotmail.com On Tue, November 22, 2005 3:25 pm, Marcelo Nery dos Santos said: > Hi, > > After studying the Jakarta Commons IO API, I found a great method that > allows me to delete some native code from my system, it is the: > > static long FileSystemUtils.freeSpace(String path) > > However, as it return type is long, I am in trouble to represent > values greater than 2GB. Is it possible to add another method into > this class? I would suggest something like: > > static double getApproximateFreeSpace(String path) > > Thus, if a general (possibly high) approximate value is needed, this > method could be used. In situations where an exact value is needed, > typically, when we are running low in space, the original 'static long > freeSpace(String path)' would fit. > > I think this comment is also valid in other areas of the IO package. > However, it is more critical when dealing with file system comprising > several gigabytes of free space. By the javadoc, it is not clear what > value is returned if a free space larger than 2GB if available. > > Thanks for this great package. > > Marcelo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org