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

Add convenience methods for copyToDirectory

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: Utilities
    • Labels:

      Description

      I suggest adding the following convenience methods:

      First:
      void copyToDirectory(final File src, final File destDir) which will simply select either
      copyFileToDirectory
      or
      copyDirectoryToDirectory.

      Second:
      void copyToDirectory(final Collection<File> srcs, final File destDir) which will simply use copyToDirectory for each file object.

      Implementation of these methods should be straight foward as they would only recombine methods that are already existing and tested.

        Attachments

        1. IO-367.patch
          7 kB
          James Sawle

          Issue Links

            Activity

              People

              • Assignee:
                pascalschumacher Pascal Schumacher
                Reporter:
                cornelius Cornelius Lilge
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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