commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r330318 - in /jakarta/commons/proper/vfs/trunk: RELEASE_NOTES.txt src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java
Date Wed, 02 Nov 2005 19:03:42 GMT
Author: imario
Date: Wed Nov  2 11:03:33 2005
New Revision: 330318

URL: http://svn.apache.org/viewcvs?rev=330318&view=rev
Log:
ftp fix: removed setLastModifiedTime as this isnt supported by the ftp protocol

Modified:
    jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java

Modified: jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt?rev=330318&r1=330317&r2=330318&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt (original)
+++ jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt Wed Nov  2 11:03:33 2005
@@ -5,6 +5,7 @@
 
 ftp:
 better error message if it isnt possible to aquire a input or output stream
+removed setLastModifiedTime, its not supported by FTP
 
 core:
 removed check for isWriteable in deleteSelf as its possible to delete a read-only file

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java?rev=330318&r1=330317&r2=330318&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileObject.java
Wed Nov  2 11:03:33 2005
@@ -437,27 +437,6 @@
     }
 
     /**
-     * get the last modified time on an ftp file
-     *
-     * @param modtime the time to set on the ftp file
-     * @see org.apache.commons.vfs.provider.AbstractFileObject#doSetLastModifiedTime(long)
-     */
-    protected void doSetLastModifiedTime(final long modtime) throws Exception
-    {
-        if (this.fileInfo.isSymbolicLink())
-        {
-            getLinkDestination().getContent().setLastModifiedTime(modtime);
-        }
-        else
-        {
-            final Date d = new Date(modtime);
-            final Calendar c = new GregorianCalendar();
-            c.setTime(d);
-            this.fileInfo.setTimestamp(c);
-        }
-    }
-
-    /**
      * Creates an input stream to read the file content from.
      */
     protected InputStream doGetInputStream() throws Exception

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java?rev=330318&r1=330317&r2=330318&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/ftp/FtpFileProvider.java
Wed Nov  2 11:03:33 2005
@@ -47,8 +47,6 @@
         Capability.GET_TYPE,
         Capability.LIST_CHILDREN,
         Capability.READ_CONTENT,
-        Capability.SET_LAST_MODIFIED_FILE,
-        Capability.SET_LAST_MODIFIED_FOLDER,
         Capability.GET_LAST_MODIFIED,
         Capability.URI,
         Capability.WRITE_CONTENT,



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