commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r331593 - in /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs: impl/VirtualFileSystem.java provider/DelegateFileObject.java
Date Mon, 07 Nov 2005 20:04:27 GMT
Author: imario
Date: Mon Nov  7 12:04:22 2005
New Revision: 331593

URL: http://svn.apache.org/viewcvs?rev=331593&view=rev
Log:
get rid of deprecated function call. Thanks to Jacob Kjome for motivating me ;-)

Modified:
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java?rev=331593&r1=331592&r2=331593&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/VirtualFileSystem.java
Mon Nov  7 12:04:22 2005
@@ -20,6 +20,7 @@
 import org.apache.commons.vfs.FileObject;
 import org.apache.commons.vfs.FileSystemException;
 import org.apache.commons.vfs.FileSystemOptions;
+import org.apache.commons.vfs.FileType;
 import org.apache.commons.vfs.NameScope;
 import org.apache.commons.vfs.provider.AbstractFileSystem;
 import org.apache.commons.vfs.provider.DelegateFileObject;
@@ -138,7 +139,9 @@
                 {
                     done = file.exists();
                 }
-                file.attachChild(childName.getBaseName());
+                
+                // As this is the parent of our junction it has to be a folder 
+                file.attachChild(childName, FileType.FOLDER);
             }
 
             // TODO - attach all cached children of the junction point to their real file

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java?rev=331593&r1=331592&r2=331593&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/DelegateFileObject.java
Mon Nov  7 12:04:22 2005
@@ -60,12 +60,12 @@
     /**
      * Adds a child to this file.
      */
-    public void attachChild(final String baseName) throws Exception
+    public void attachChild(final FileName baseName, final FileType type) throws Exception
     {
         final FileType oldType = doGetType();
         if (children.add(baseName))
         {
-            childrenChanged();
+            childrenChanged(baseName, type);
         }
         maybeTypeChanged(oldType);
     }



---------------------------------------------------------------------
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