Changeset 4395
- Timestamp:
- 2003-05-28T14:58:07+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileNode.java
r4391 r4395 1 1 package org.greenstone.gatherer.file; 2 2 3 import java.io. File;3 import java.io.*; 4 4 import java.util.*; 5 5 import javax.swing.*; … … 249 249 // Preclude the directory of any open collection 250 250 String collection_name = Gatherer.c_man.getCollection().getName(); 251 for(int j = 0; collection_name != null && files != null &&j < files.length; j++) {251 for(int j = 0; collection_name != null && j < files.length; j++) { 252 252 if(files[j].getName().equals(collection_name)) { 253 253 // Remove the offending directory … … 255 255 collection_name = null; // Only have to do this once. 256 256 } 257 } 258 } 259 // Finally remove any files whose canonical path do not match their absolute one (ie symbolic links) 260 for(int k = files.length; k != 0; k--) { 261 try { 262 if(!files[k-1].getAbsolutePath().equals(files[k-1].getCanonicalPath())) { 263 ///ystem.err.println("For file: " + files[k-1].getName()); 264 ///ystem.err.println("Absolute Path: " + files[k-1].getAbsolutePath()); 265 ///ystem.err.println("Canonical Path: " + files[k-1].getCanonicalPath()); 266 files = ArrayTools.remove(files, (k-1)); 267 } 268 } 269 catch (IOException exception) { 270 Gatherer.printStackTrace(exception); 257 271 } 258 272 }
Note:
See TracChangeset
for help on using the changeset viewer.