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

Add convenience methods for copyToDirectory

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.6
    • Utilities

    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

              pascalschumacher Pascal Schumacher
              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