Parent Directory | Revision Log | Patch
--- lucene/nutch/trunk/src/java/org/apache/nutch/segment/SegmentReader.java 2006/05/04 02:28:13 399514 +++ lucene/nutch/trunk/src/java/org/apache/nutch/segment/SegmentReader.java 2006/05/04 02:42:02 399515 @@ -502,7 +502,7 @@ public class SegmentReader extends Confi } } Configuration conf = NutchConfiguration.create(); - FileSystem fs = FileSystem.get(conf); + final FileSystem fs = FileSystem.get(conf); SegmentReader segmentReader = new SegmentReader(conf, co, fe, ge, pa, pd, pt); // collect required args switch (mode) { @@ -529,7 +529,9 @@ public class SegmentReader extends Confi File dir = new File(args[++i]); File[] files = fs.listFiles(dir, new FileFilter() { public boolean accept(File pathname) { - if (pathname.isDirectory()) return true; + try { + if (fs.isDirectory(pathname)) return true; + } catch (IOException e) {}; return false; } });
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |