[jboss-cvs] JBossAS SVN: r95113 - in projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs: spi and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Oct 19 10:25:27 EDT 2009
Author: david.lloyd at jboss.com
Date: 2009-10-19 10:25:27 -0400 (Mon, 19 Oct 2009)
New Revision: 95113
Modified:
projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java
projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/spi/JavaZipFileSystem.java
Log:
Whoops.
Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java 2009-10-19 14:19:20 UTC (rev 95112)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VirtualFile.java 2009-10-19 14:25:27 UTC (rev 95113)
@@ -193,6 +193,11 @@
return !isDirectory();
}
+ /**
+ * Determine whether the named virtual file is a plain file.
+ *
+ * @return {@code true} if it is a plain file, {@code false} otherwise
+ */
public boolean isFile() {
final VFS.Mount mount = VFS.getMount(this);
return mount.getFileSystem().isFile(mount.getMountPoint(), this);
Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/spi/JavaZipFileSystem.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/spi/JavaZipFileSystem.java 2009-10-19 14:19:20 UTC (rev 95112)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/spi/JavaZipFileSystem.java 2009-10-19 14:25:27 UTC (rev 95113)
@@ -223,13 +223,13 @@
/** {@inheritDoc} */
public boolean isFile(final VirtualFile mountPoint, final VirtualFile target) {
final ZipNode zipNode = rootNode.find(mountPoint, target);
- return zipNode != null && zipNode.entry == null;
+ return zipNode != null && zipNode.entry != null;
}
/** {@inheritDoc} */
public boolean isDirectory(VirtualFile mountPoint, VirtualFile target) {
final ZipNode zipNode = rootNode.find(mountPoint, target);
- return zipNode != null && zipNode.entry != null;
+ return zipNode != null && zipNode.entry == null;
}
/** {@inheritDoc} */
More information about the jboss-cvs-commits
mailing list