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:47:01 UTC
svn commit: r496734 -
/jakarta/commons/proper/vfs/trunk/sandbox/src/main/java/org/apache/commons/vfs/provider/mime/MimeFileObject.java
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