commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r397202 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
Date Wed, 26 Apr 2006 14:19:36 GMT
Author: imario
Date: Wed Apr 26 07:19:34 2006
New Revision: 397202

URL: http://svn.apache.org/viewcvs?rev=397202&view=rev
Log:
fixed regression where the rootFile wasnt used to build the local filename

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java?rev=397202&r1=397201&r2=397202&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
Wed Apr 26 07:19:34 2006
@@ -69,7 +69,8 @@
         if (file == null)
         {
             // Remove the "file:///"
-            String fileName = getName().getPathDecoded();
+            LocalFileName localFileName = (LocalFileName) getName();
+            String fileName = localFileName.getRootFile() + getName().getPathDecoded();
             // fileName = UriParser.decode(fileName);
             file = new File(fileName);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message