commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1339008 - in /commons/proper/vfs/trunk: sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java src/changes/changes.xml
Date Wed, 16 May 2012 05:11:23 GMT
Author: ggregory
Date: Wed May 16 05:11:22 2012
New Revision: 1339008

URL: http://svn.apache.org/viewvc?rev=1339008&view=rev
Log:
[VFS-252][SMB] SmbFileObject does not support setLastModifiedTime while jcifs supports it.

Modified:
    commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java
    commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
    commons/proper/vfs/trunk/src/changes/changes.xml

Modified: commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java?rev=1339008&r1=1339007&r2=1339008&view=diff
==============================================================================
--- commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java
(original)
+++ commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileObject.java
Wed May 16 05:11:22 2012
@@ -255,4 +255,10 @@ public class SmbFileObject
     {
         return new SmbFileRandomAccessContent(file, mode);
     }
+
+    @Override
+    protected boolean doSetLastModifiedTime(final long modtime) throws Exception {
+        file.setLastModified(modtime);
+        return true;
+    }
 }

Modified: commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java?rev=1339008&r1=1339007&r2=1339008&view=diff
==============================================================================
--- commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
(original)
+++ commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs2/provider/smb/SmbFileProvider.java
Wed May 16 05:11:22 2012
@@ -43,6 +43,8 @@ public class SmbFileProvider
         Capability.RENAME,
         Capability.GET_TYPE,
         Capability.GET_LAST_MODIFIED,
+        Capability.SET_LAST_MODIFIED_FILE,
+        Capability.SET_LAST_MODIFIED_FOLDER,
         Capability.LIST_CHILDREN,
         Capability.READ_CONTENT,
         Capability.URI,

Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1339008&r1=1339007&r2=1339008&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Wed May 16 05:11:22 2012
@@ -23,6 +23,9 @@
 
   <body>
     <release version="2.1" date="TBD" description="">
+      <action issue="VFS-252" dev="ggregory" type="update">
+        [SMB] SmbFileObject does not support setLastModifiedTime while jcifs supports it.
+      </action>
       <action issue="VFS-200" dev="ggregory" type="update">
         [SFTP] Failure when files are very large.
       </action>



Mime
View raw message