Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-238

Add sizeOf(File) Method to FileUtils

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Utilities
    • None
    • Java 1.4+

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mwooten.dev Michael Wooten
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified