commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (IO-238) Add sizeOf(File) Method to FileUtils
Date Tue, 28 Sep 2010 21:52:33 GMT

     [ https://issues.apache.org/jira/browse/IO-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton resolved IO-238.
--------------------------------

    Resolution: Fixed

Fixed, thanks for the patch:

http://svn.apache.org/viewvc?view=revision&revision=1002367

> Add sizeOf(File) Method to FileUtils
> ------------------------------------
>
>                 Key: IO-238
>                 URL: https://issues.apache.org/jira/browse/IO-238
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.0
>         Environment: Java 1.4+
>            Reporter: Michael Wooten
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: apache-commons-io-sizeof.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I suggest adding a "size of" method to FileUtils that will appropriately call File.length()
or FileUtils.sizeOfDirectory(File) based on whether or not the file is a regular file or a
directory. I propose the following signature:
> long sizeOf(File)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message