- Timestamp:
- 2011-09-23T13:37:54+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r22605 r24636 727 727 * @see org.greenstone.gatherer.Gatherer 728 728 */ 729 public void copyDirectoryContents(File source, File destination )729 public void copyDirectoryContents(File source, File destination, boolean overwrite) 730 730 throws FileAlreadyExistsException, FileNotFoundException, InsufficientSpaceException, IOException, ReadNotPermittedException, UnknownFileErrorException, WriteNotPermittedException 731 731 { … … 741 741 File new_file = new File(destination, f_name); 742 742 if (f.isDirectory()) { 743 copyDirectoryContents(f, new_file );743 copyDirectoryContents(f, new_file, overwrite); 744 744 } else if (f.isFile()) { 745 copyFile(f, new_file, false); 746 } 747 } 745 copyFile(f, new_file, overwrite); 746 } 747 } 748 } 749 750 /** Preserving old default behaviour of copyDirContents method, where overwrite is false. */ 751 public void copyDirectoryContents(File source, File destination) throws FileAlreadyExistsException, FileNotFoundException, InsufficientSpaceException, IOException, ReadNotPermittedException, UnknownFileErrorException, WriteNotPermittedException 752 { 753 copyDirectoryContents(source, destination, false); 748 754 } 749 755
Note:
See TracChangeset
for help on using the changeset viewer.