commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r407732 - /jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java
Date Fri, 19 May 2006 06:58:23 GMT
Author: imario
Date: Thu May 18 23:58:22 2006
New Revision: 407732

URL: http://svn.apache.org/viewvc?rev=407732&view=rev
Log:
ensure file is attach()ed

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

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java?rev=407732&r1=407731&r2=407732&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/AbstractFileObject.java
Thu May 18 23:58:22 2006
@@ -845,6 +845,8 @@
     public void copyFrom(final FileObject file, final FileSelector selector)
         throws FileSystemException
     {
+    	attach();
+    	
         if (!file.exists())
         {
             throw new FileSystemException("vfs.provider/copy-missing-file.error", file);
@@ -901,6 +903,8 @@
      */
     public void moveTo(FileObject destFile) throws FileSystemException
     {
+    	attach();
+    	
         if (canRenameTo(destFile))
         {
 	        if (!getParent().isWriteable())



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