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("/"); + } }