Changeset 13389


Ignore:
Timestamp:
2006-12-01T11:16:10+13:00 (17 years ago)
Author:
mdewsnip
Message:

(Remote building) Now ensures the collection "import" directory is created when starting a new collection, to prevent errors when building the collection before any files have been added.

File:
1 edited

Legend:

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

    r12808 r13389  
    395395
    396396        // Make sure an import folder exists
    397         File import_directory = new File(collection_directory_path + "import");
    398         if (!import_directory.exists()) {
    399         import_directory.mkdirs();
     397        File collection_import_directory = new File(collection_directory_path + "import");
     398        if (!collection_import_directory.exists()) {
     399        collection_import_directory.mkdirs();
     400        if (Gatherer.isGsdlRemote) {
     401            RemoteGreenstoneServer.newCollectionDirectory(name, collection_import_directory);
     402        }
    400403        }
    401404
Note: See TracChangeset for help on using the changeset viewer.