You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Wooten (JIRA)" <ji...@apache.org> on 2010/03/04 20:59:27 UTC
[jira] Created: (IO-238) Add sizeOf(File) Method to FileUtils
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
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.
[jira] Resolved: (IO-238) Add sizeOf(File) Method to FileUtils
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (IO-238) Add sizeOf(File) Method to FileUtils
Posted by "Michael Wooten (JIRA)" <ji...@apache.org>.
[ 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