commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Birkoff <maxbirk...@yahoo.com>
Subject [compress] patch to TarArchiveEntry for detecting a symlink
Date Wed, 27 Oct 2010 20:55:57 GMT
I would like the patch below applied to:
  commons-compress-1.1-src/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java

I had approached the ant project with this request (as I had been using the tar under org.apache.tools.tar.TarEntry
that ships with ant) but Stefan Bodewig directed me here.

If this patch is accepted, can you please let me know when the 1.2 release is planned?

Thanks much in advance,


--- TarArchiveEntry.java.0      2010-10-27 13:30:58.669839000 -0700
+++ TarArchiveEntry.java        2010-10-27 13:54:48.344231000 -0700
@@ -594,6 +594,15 @@
     }

     /**
+     * Return whether or not this entry represents a symbolic link.
+     *
+     * @return True if this entry represents a symbolic link, false otherwise.
+     */
+    public boolean isSymbolicLink() {
+        return (linkFlag == LF_SYMLINK);
+    }
+
+    /**
      * If this entry represents a file, and the file is a directory, return
      * an array of TarEntries for this entry's children.
      *




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message