commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r264950 - in /jakarta/commons/proper/vfs/trunk: RELEASE_NOTES.txt src/java/org/apache/commons/vfs/impl/providers.xml src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.java
Date Wed, 31 Aug 2005 06:08:20 GMT
Author: imario
Date: Tue Aug 30 23:08:12 2005
New Revision: 264950

URL: http://svn.apache.org/viewcvs?rev=264950&view=rev
Log:
enh: allow createFilesystem with .gz files
enh: better handling of file/folder flag with compressed files

Modified:
    jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/providers.xml
    jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.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=264950&r1=264949&r2=264950&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt (original)
+++ jakarta/commons/proper/vfs/trunk/RELEASE_NOTES.txt Tue Aug 30 23:08:12 2005
@@ -5,6 +5,8 @@
 
 zip, jar, ....:
 allow filenames without trailing "!"
+allow createFilesystem with .gz files
+better handling of file/folder flag with compressed files 
 
 
 2005-08-13  commons-vfs 1.0 RC3

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/providers.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/providers.xml?rev=264950&r1=264949&r2=264950&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/providers.xml (original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/impl/providers.xml Tue
Aug 30 23:08:12 2005
@@ -78,6 +78,7 @@
     <extension-map extension="tar" scheme="tar"/>
     <mime-type-map mime-type="application/zip" scheme="zip"/>
     <mime-type-map mime-type="application/x-tar" scheme="tar"/>
+    <mime-type-map mime-type="application/x-gzip" scheme="gz"/>
     <!--
     <mime-type-map mime-type="application/x-tgz" scheme="tgz"/>
     -->

Modified: jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.java?rev=264950&r1=264949&r2=264950&view=diff
==============================================================================
--- jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.java
(original)
+++ jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/compressed/CompressedFileFileObject.java
Tue Aug 30 23:08:12 2005
@@ -65,7 +65,14 @@
      */
     protected FileType doGetType() throws FileSystemException
     {
-        return this.container.getType();
+        if (getName().getPath().endsWith("/"))
+        {
+            return FileType.FOLDER;
+        }
+        else
+        {
+            return FileType.FILE;
+        }
     }
 
     /**



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