jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: rev 53867 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/search/lucene
Date Wed, 06 Oct 2004 14:17:01 GMT
Author: mreutegg
Date: Wed Oct  6 07:17:00 2004
New Revision: 53867

Modified:
   incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/search/lucene/FileSystemDirectory.java
Log:
- minor change: FileSystemDirectory should use listFiles() instead of list(). we're only interested
in files.

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/search/lucene/FileSystemDirectory.java
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/search/lucene/FileSystemDirectory.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/search/lucene/FileSystemDirectory.java
Wed Oct  6 07:17:00 2004
@@ -102,9 +102,9 @@
         if (create) {
             try {
                 // erase if existing
-                String[] files = fs.list("/");
+                String[] files = fs.listFiles("/");
                 for (int i = 0; i < files.length; i++) {
-                    log.error("deleting " + files[i]);
+                    log.debug("deleting " + files[i]);
                     fs.deleteFile(files[i]);
                 }
             } catch (FileSystemException e) {
@@ -119,7 +119,7 @@
     public String[] list() throws IOException {
         log.debug("list");
         try {
-            return fs.list("/");
+            return fs.listFiles("/");
         } catch (FileSystemException e) {
             throw new IOException(e.getMessage());
         }

Mime
View raw message