You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Xavier Seneque (JIRA)" <ji...@apache.org> on 2014/09/23 17:43:33 UTC
[jira] [Updated] (IO-373) FileUtils.byteCountToDisplaySize
improvement/rounding issues
[ https://issues.apache.org/jira/browse/IO-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Seneque updated IO-373:
------------------------------
Attachment: byteCountToHumanReadableGnu.patch
I'm proposing either to replace or supplement this method by something that emulates the output of "ls -lh" for the units. I'm attaching a patch with new function byteCountToHumanReadableGnu with unit tests. It is consistent with my tests of "ls -lh" on Redhat Linux. I think that's a format that a lot of people are used to and would be happy to use even if it's a bit odd sometimes.
> FileUtils.byteCountToDisplaySize improvement/rounding issues
> ------------------------------------------------------------
>
> Key: IO-373
> URL: https://issues.apache.org/jira/browse/IO-373
> Project: Commons IO
> Issue Type: Improvement
> Components: Utilities
> Affects Versions: 2.4
> Reporter: Mark
> Priority: Minor
> Attachments: byteCountToHumanReadableGnu.patch
>
>
> Issue IO-226 is not fixed but closed.
> ?
> Here is my solution that also support a user-defined precision in terms of a maximum length of the digits part.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)