manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1611204 - /manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Date Wed, 16 Jul 2014 22:14:51 GMT
Author: kwright
Date: Wed Jul 16 22:14:51 2014
New Revision: 1611204

URL: http://svn.apache.org/r1611204
Log:
Fix connector to work on Windows

Modified:
    manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java

Modified: manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1611204&r1=1611203&r2=1611204&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
(original)
+++ manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Wed Jul 16 22:14:51 2014
@@ -220,13 +220,14 @@ public class FileConnector extends org.a
       {
         if (file.isDirectory())
         {
-          // It's a directory.  The version ID will be the
-          // last modified date.
-          long lastModified = file.lastModified();
-          rval[i] = new Long(lastModified).toString();
+          // It's a directory.  The version ID would be the
+          // last modified date, except that doesn't work on Windows
+          // because modified dates are not transitive.
+          //long lastModified = file.lastModified();
+          //rval[i] = new Long(lastModified).toString();
 
-          // Signal that we don't have any versioning.
-          // rval[i] = "";
+          // Signal that we don't have any versioning and that we should recheck always.
+          rval[i] = "";
         }
         else
         {



Mime
View raw message