commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r496734 - /jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java
Date Tue, 16 Jan 2007 15:47:01 GMT
Author: imario
Date: Tue Jan 16 07:46:56 2007
New Revision: 496734

URL: http://svn.apache.org/viewvc?view=rev&rev=496734
Log:
again removed the special content file, hell yea, its the sandbox

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=496734&r1=496733&r2=496734
==============================================================================
--- 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:46:56 2007
@@ -112,11 +112,6 @@
 			}
 		}
 
-		if (partName.equals(MimeFileSystem.CONTENT_NAME))
-		{
-			return (Part) part.getContent();
-		}
-
 		return null;
 	}
 
@@ -135,16 +130,9 @@
 			return FileType.IMAGINARY;
 		}
 
-		/*
-		if (!isMultipart())
+		if (isMultipart())
 		{
 			// we cant have children ...
-			return FileType.FILE;
-		}
-		*/
-		if (isMultipart() || (part.getContent() != null && part.getContent() instanceof
Part))
-		{
-			// we have both
 			return FileType.FILE_OR_FOLDER;
 		}
 
@@ -194,20 +182,6 @@
 					fo.setPart(part);
 					vfs.add(fo);
 				}
-			}
-		}
-		else
-		{
-			Object content = part.getContent();
-			if (content instanceof Part)
-			{
-				MimeFileObject fo = (MimeFileObject) FileObjectUtils.getAbstractFileObject(getFileSystem().resolveFile(
-					getFileSystem().getFileSystemManager().resolveName(
-						getName(),
-						MimeFileSystem.CONTENT_NAME,
-						NameScope.CHILD)));
-				fo.setPart((Part) content);
-				vfs.add(fo);
 			}
 		}
 



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