Changeset 5860
- Timestamp:
- 2003-11-17T13:57:57+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileNode.java
r5854 r5860 244 244 File cols[] = start.listFiles(); 245 245 ArrayTools.sort(cols); 246 // We add their import directories, but only if its not our current collection, nor the model collection.246 // We add their import directories, except for the model collection 247 247 for(int i = 0; cols != null && i < cols.length; i++) { 248 if (!cols[i].getName().equals(StaticStrings.MODEL_COLLECTION_NAME) && (!Gatherer.c_man.ready() || !Gatherer.c_man.getCollectionDirectory().equals(cols[i].getAbsolutePath()))) {248 if (!cols[i].getName().equals(StaticStrings.MODEL_COLLECTION_NAME)) { 249 249 File dirs[] = cols[i].listFiles(); 250 250 ArrayTools.sort(dirs); … … 276 276 } 277 277 //} 278 // // If this node just happens to be the greenstone collection directory 279 // if(Gatherer.c_man != null && Gatherer.c_man.ready() && file.equals(new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)))) { 280 // // Preclude the directory of any open collection 281 // String collection_name = Gatherer.c_man.getCollection().getName(); 282 // for(int j = 0; j < files.length; j++) { 283 // ///ystem.err.println("Does " + files[j].getName() + " equal " + collection_name + "?"); 284 // if(files[j].getName().equals(collection_name)) { 285 // // Remove the offending directory 286 // files = ArrayTools.remove(files, j); 287 // } 288 // } 289 // } 278 290 279 // Finally remove any files whose canonical path do not match their absolute one (ie symbolic links). We only do this test under linux, because under windows there is no such thing as a symbolic link, and instead we suffer difficulties with the 16bit truncated file paths not being the same as the canonical ones (i.e Program Files => Progra~1). 291 280 /* This test to eliminate infinite recursions causes more problems than it solves
Note:
See TracChangeset
for help on using the changeset viewer.