You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pa...@apache.org on 2010/05/10 23:52:01 UTC

svn commit: r942924 - /felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java

Author: pauls
Date: Mon May 10 21:52:01 2010
New Revision: 942924

URL: http://svn.apache.org/viewvc?rev=942924&view=rev
Log:
Improve ls command. (FELIX-2042)

Modified:
    felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java

Modified: felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java?rev=942924&r1=942923&r2=942924&view=diff
==============================================================================
--- felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java (original)
+++ felix/trunk/gogo/felixcommands/src/main/java/org/apache/felix/gogo/felixcommands/Files.java Mon May 10 21:52:01 2010
@@ -102,8 +102,8 @@ public class Files
         String parent = (idx < 0) ? "." : pattern.substring(0, idx + 1);
         String target = (idx < 0) ? pattern : pattern.substring(idx + 1);
 
-        File actualParent = (parent.charAt(0) == File.separatorChar)
-            ? new File(parent) : new File(cd(session), parent);
+        File actualParent = ((parent.charAt(0) == File.separatorChar)
+            ? new File(parent) : new File(cd(session), parent)).getCanonicalFile();
 
         idx = target.indexOf(File.separatorChar, idx);
         boolean isWildcarded = (target.indexOf('*', idx) >= 0);
@@ -290,4 +290,4 @@ loop:   for (int i = 0; i < len; i++)
 
         return result;
     }
-}
\ No newline at end of file
+}