commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylwester Lachiewicz" <lachiew...@plusnet.pl>
Subject [vfs] getLastModified in smb provider
Date Sat, 12 Apr 2003 19:37:54 GMT
Hi,
jcifs has implementation of getLastModified so we can use this. Also there is new version
of jcifs 0.7.5 at http://users.erols.com/mballen/jcifs/

Is someone implementing jdbc provider?

smb patch:
Index: SmbFileObject.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileObject.java,v
retrieving revision 1.9
diff -u -r1.9 SmbFileObject.java
--- SmbFileObject.java 23 Feb 2003 00:40:39 -0000 1.9
+++ SmbFileObject.java 12 Apr 2003 19:34:44 -0000
@@ -168,4 +168,15 @@
     {
         return new SmbFileOutputStream( file );
     }
+
+    /**
+     * Returns the last modified time of this file.  Is only called if
+     * {@link #doGetType} does not return {@link FileType#IMAGINARY}.
+     *
+     * This implementation throws an exception.
+     */
+    protected long doGetLastModifiedTime() throws Exception {
+        return file.getLastModified();
+    }
+
 }

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message