commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb SmbFileObject.java SmbFileSystem.java
Date Sun, 13 Apr 2003 00:14:59 GMT
adammurdoch    2003/04/12 17:14:59

  Modified:    vfs/src/java/org/apache/commons/vfs/provider/smb
                        SmbFileObject.java SmbFileSystem.java
  Log:
  Add support for getting last-modified time for SMB files.
  
  Revision  Changes    Path
  1.10      +9 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileObject.java
  
  Index: SmbFileObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileObject.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SmbFileObject.java	23 Feb 2003 00:40:39 -0000	1.9
  +++ SmbFileObject.java	13 Apr 2003 00:14:58 -0000	1.10
  @@ -154,6 +154,15 @@
       }
   
       /**
  +     * Returns the last modified time of this file.
  +     */
  +    protected long doGetLastModifiedTime()
  +        throws Exception
  +    {
  +        return file.getLastModified();
  +    }
  +
  +    /**
        * Creates an input stream to read the file content from.
        */
       protected InputStream doGetInputStream() throws Exception
  
  
  
  1.15      +1 -0      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java
  
  Index: SmbFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/smb/SmbFileSystem.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SmbFileSystem.java	21 Feb 2003 13:09:00 -0000	1.14
  +++ SmbFileSystem.java	13 Apr 2003 00:14:58 -0000	1.15
  @@ -93,6 +93,7 @@
           caps.add( Capability.CREATE );
           caps.add( Capability.DELETE );
           caps.add( Capability.GET_TYPE );
  +        caps.add( Capability.LAST_MODIFIED );
           caps.add( Capability.LIST_CHILDREN );
           caps.add( Capability.READ_CONTENT );
           caps.add( Capability.URI );
  
  
  

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