Ignore:
Timestamp:
2011-09-23T13:37:54+12:00 (13 years ago)
Author:
ak19
Message:

FileQueue.copyDirectoryContents is now overloaded to take an overwrite parameter. This is necessary for when CollectionManager.copyExtraBaseCollStuff() has to copy the macros folder across. At this point a new collection contains a macros folder already and it used to be unable to overwite it before. Now, with the new overwrite flag to FileQueue.copyDirContents(), setting overwrite to true when basing a new collection on an existing one allows all the necessary folders to be copied across.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r23433 r24636  
    485485          File new_coll_subdir = new File(new_coll_dir, dir_name);
    486486          new_coll_subdir.mkdirs();
    487           Gatherer.f_man.getQueue().copyDirectoryContents(subdir, new_coll_subdir);
     487          // Copy with force overwrite, since it's a new collection that's currently
     488          // being created and won't have anything in it but at most modelcol stuff
     489          Gatherer.f_man.getQueue().copyDirectoryContents(subdir, new_coll_subdir, true);
    488490        }
    489491        catch (Exception e) {
Note: See TracChangeset for help on using the changeset viewer.