You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2015/05/08 13:02:26 UTC

svn commit: r1678329 - /manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java

Author: kwright
Date: Fri May  8 11:02:26 2015
New Revision: 1678329

URL: http://svn.apache.org/r1678329
Log:
Another fix for CONNECTORS-1197

Modified:
    manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java

Modified: manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java?rev=1678329&r1=1678328&r2=1678329&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java (original)
+++ manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/agents/output/filesystem/FileOutputConnector.java Fri May  8 11:02:26 2015
@@ -643,7 +643,7 @@ public class FileOutputConnector extends
     boolean endsWithSlash = false;
     if (uri.getScheme() != null) {
       path.append(uri.getScheme());
-      path.append("_");
+      path.append("/");
       endsWithSlash = true;
     }
 
@@ -656,7 +656,7 @@ public class FileOutputConnector extends
       }
       if (uri.getRawPath() != null) {
         if (uri.getRawPath().length() == 0) {
-          path.append("_");
+          path.append("/");
           endsWithSlash = true;
         } else if (uri.getRawPath().equals("/")) {
           path.append(uri.getRawPath());
@@ -664,7 +664,7 @@ public class FileOutputConnector extends
         } else {
           for (String name : uri.getRawPath().split("/")) {
             if (name.length() > 0) {
-              path.append("_");
+              path.append("/");
               path.append(convertWindowsString(name));
               endsWithSlash = false;
             }
@@ -672,7 +672,7 @@ public class FileOutputConnector extends
         }
       }
       if (uri.getRawQuery() != null) {
-        path.append("_");
+        path.append("/");
         path.append(convertWindowsString(uri.getRawQuery()));
         endsWithSlash = false;
       }
@@ -680,7 +680,7 @@ public class FileOutputConnector extends
       if (uri.getRawSchemeSpecificPart() != null) {
         for (String name : uri.getRawSchemeSpecificPart().split("/")) {
           if (name.length() > 0) {
-            path.append("_");
+            path.append("/");
             path.append(convertWindowsString(name));
             endsWithSlash = false;
           }