commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Wooten (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-238) Add sizeOf(File) Method to FileUtils
Date Tue, 13 Apr 2010 02:25:48 GMT

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

Michael Wooten updated IO-238:
------------------------------

    Attachment: apache-commons-io-sizeof.patch

The patch was created with Eclipse and contains the sizeOf() method described in the description,
as well as a test case for it.

> 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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message