commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Seneque (JIRA)" <>
Subject [jira] [Updated] (IO-373) FileUtils.byteCountToDisplaySize improvement/rounding issues
Date Tue, 23 Sep 2014 15:43:33 GMT


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

> FileUtils.byteCountToDisplaySize improvement/rounding issues
> ------------------------------------------------------------
>                 Key: IO-373
>                 URL:
>             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

View raw message