From 8e6f5ac6e3324f9dd76019de070b035ef0b5b3cd Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Wed, 21 Mar 2012 10:38:30 -0600 Subject: [PATCH] add ZipEntry.isDirectory (trivial implementation) --- classpath/java/util/zip/ZipEntry.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/util/zip/ZipEntry.java b/classpath/java/util/zip/ZipEntry.java index 9f18369c52..ffa8a1a82e 100644 --- a/classpath/java/util/zip/ZipEntry.java +++ b/classpath/java/util/zip/ZipEntry.java @@ -14,4 +14,8 @@ public abstract class ZipEntry { public abstract String getName(); public abstract int getCompressedSize(); public abstract int getSize(); + + public boolean isDirectory() { + return getName().endsWith("/"); + } }