<div>Hi everyone,</div><div><br></div><div>I am a new Forge entusiast, it&#39;s a great project!</div><div>So decided to learn and help, i started to do some code.</div><div><br></div><div>I developed a plugin based in issue <a href="https://issues.jboss.org/browse/FORGE-559">https://issues.jboss.org/browse/FORGE-559</a></div>
<div><br></div><div>The implementation suggest a full list of entries in a zip archive.</div><div><br></div><div><div><span class="" style="white-space:pre">        </span>[plugin-lszip] plugin-lszip.jar $ ls<br></div><div><div>
<span class="" style="white-space:pre">        </span>META-INF/</div><div><span class="" style="white-space:pre">        </span>META-INF/beans.xml</div><div><span class="" style="white-space:pre">        </span>README.TXT</div><div><span class="" style="white-space:pre">        </span>org/</div>
<div><span class="" style="white-space:pre">        </span>org/jboss/</div><div><span class="" style="white-space:pre">        </span>org/jboss/forge/</div><div><span class="" style="white-space:pre">        </span>org/jboss/forge/dev/</div><div>
<span class="" style="white-space:pre">        </span>org/jboss/forge/dev/zip/</div><div><span class="" style="white-space:pre">        </span>org/jboss/forge/dev/zip/LsZipPlugin.class</div><div><span class="" style="white-space:pre">        </span>org/jboss/forge/resources/</div>
<div><span class="" style="white-space:pre">        </span>org/jboss/forge/resources/ZipEntryResource$ZipEntryInputStream.class</div><div><span class="" style="white-space:pre">        </span>org/jboss/forge/resources/ZipEntryResource.class</div>
<div><span class="" style="white-space:pre">        </span>org/jboss/forge/resources/ZipResource.class</div></div></div><div><br></div><div>Then i sent a pull to github: <a href="https://github.com/forge/core/pull/239">https://github.com/forge/core/pull/239</a></div>
<div><br></div><div>The code works fine for list command.</div><div>But in some other tests with &quot;cat&quot; command to read a ZipEntry content, and &quot;cd&quot; command to change the current resource, the commands didn&#39;t work!</div>
<div><br></div><div>I realised that the name of entries contains slash and the PathspecParser class split the name and navigate recursively.</div><div><br></div><div>I think that implementation like a DirectoryResource hierarquicali could work fine. But will lose the full list of entries.</div>
<div><br></div><div>Some suggestion to resolve the behavior?</div><div><br></div><div>Thank you,</div><div>Adolfo Jr.</div>