Ignore:
Timestamp:
2009-04-23T16:19:36+12:00 (15 years ago)
Author:
ak19
Message:

Making replace shortcut option work for the remote case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/file/FileManager.java

    r19230 r19239  
    467467        file_queue.addJob(System.currentTimeMillis(), Gatherer.g_man.gather_pane.workspace_tree, new FileNode[] { source_node }, collection_tree, (FileNode)collection_tree_node.getParent(),  FileJob.COPY_FILE_ONLY);
    468468        if (Gatherer.isGsdlRemote) {
    469         Gatherer.remoteGreenstoneServer.uploadFilesIntoCollection(
    470                          CollectionManager.getLoadedGroupQualifiedCollectionName(true), new File[] { new_file }, target_directory);
     469        String collection_name = CollectionManager.getLoadedGroupQualifiedCollectionName(true);
     470        Gatherer.remoteGreenstoneServer.deleteCollectionFile(collection_name, collection_tree_node.getFile());
     471        Gatherer.remoteGreenstoneServer.uploadFilesIntoCollection(collection_name, new File[] { new_file }, target_directory);
    471472        }
    472473        // do a replace of old file with new file
Note: See TracChangeset for help on using the changeset viewer.