You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by im...@apache.org on 2007/01/16 16:03:20 UTC

svn commit: r496721 - /jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java

Author: imario
Date: Tue Jan 16 07:03:19 2007
New Revision: 496721

URL: http://svn.apache.org/viewvc?view=rev&rev=496721
Log:
limit depth

Modified:
    jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java

Modified: jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java?view=diff&rev=496721&r1=496720&r2=496721
==============================================================================
--- jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java (original)
+++ jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java Tue Jan 16 07:03:19 2007
@@ -142,10 +142,14 @@
 			return FileType.FILE;
 		}
 		*/
+		if (part.getContent() != null && part.getContent() instanceof Part)
+		{
+			// we have both
+			return FileType.FILE_OR_FOLDER;
+		}
 
-		// we have both
-		return FileType.FILE_OR_FOLDER;
-    }
+		return FileType.FILE;
+	}
 
 	protected String[] doListChildren() throws Exception
 	{



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org