Re: readable filesize package

From: Date: Mon, 22 Nov 2004 13:07:30 +0000
Subject: Re: readable filesize package
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34489@lists.php.net to get a copy of this message
I think it'd make a nice addition to the File package, as a static method. Here's the code I use: http://aidan.dotgeek.org/lib/?file=function.size_readable.php "Justin Patrin" <papercrane@gmail.com> wrote in message news:432beae041119104049ebea25@mail.gmail.com... > On Fri, 19 Nov 2004 19:40:05 +0100, Christian Weiske <cweiske@cweiske.de> > wrote: >> Hello all, >> >> While programming a file browser, I came to the problem of displaying >> the filesize in a human-readable format. >> >> There are numerous 20-liners out there which do the thing, but not in >> PEAR. >> >> Now my question: >> Would it make sense to create a package dedicated for converting file >> sizes to human readable ones with support for both 1000 and 1024 base? >> Or is that too small for an own package? If yes, maybe it can be >> integrated into the "File" package. >> > > Depends on whether the FIle package *really* needs/wants this or not > and how small the code is. If it's 20 lines or less, I would think > that it would be a fine addition to File. > > -- > Justin Patrin

« previous php.pear.dev (#34489) next »