<div dir="ltr">You can find the file here:<div><br></div><div><a href="https://dl.dropboxusercontent.com/u/4011871/test2.zip">https://dl.dropboxusercontent.com/u/4011871/test2.zip</a><br></div><div><br></div><div style>And here's the testing code for it (it sees the first file, but not the second while both are in the archive):</div>
<div style><br></div><div style><div>#include <stdio.h></div><div>#include <physfs.h></div><div><br></div><div>int main(int argc, char **argv) {</div><div><br></div><div><span class="" style="white-space:pre">   </span>PHYSFS_init(NULL);</div>
<div><span class="" style="white-space:pre">    </span>PHYSFS_addToSearchPath("test2.zip", 1);</div><div><br></div><div><span class="" style="white-space:pre"> </span>if(PHYSFS_exists("src/engine/components/Health.lua")) {</div>
<div><span class="" style="white-space:pre">            </span>printf("YES\n");</div><div><span class="" style="white-space:pre"> </span>} else {</div><div><span class="" style="white-space:pre">           </span>printf("NO\n");</div>
<div><span class="" style="white-space:pre">    </span>}</div><div><br></div><div><span class="" style="white-space:pre"> </span>if(PHYSFS_exists("src/engine/entities/PlayerChar.lua")) {</div><div><span class="" style="white-space:pre">                </span>printf("YES\n");</div>
<div><span class="" style="white-space:pre">    </span>} else {</div><div><span class="" style="white-space:pre">           </span>printf("NO\n");</div><div><span class="" style="white-space:pre">  </span>}</div><div>}</div>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 11, 2013 at 7:55 PM, Sik the hedgehog <span dir="ltr"><<a href="mailto:sik.the.hedgehog@gmail.com" target="_blank">sik.the.hedgehog@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If everything else can see it and only PhysicsFS can't, I'd say it's<br>
most likely a PhysicsFS bug and you're probably hitting a corner case.<br>
Can you provide a ZIP file that shows this issue?<br>
<br>
2013/5/11, Ivan Safrin <<a href="mailto:ivansafrin@gmail.com">ivansafrin@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hello!<br>
><br>
> I am the lead developer of Polycode, which uses PhysFS fairly heavily (thank<br>
> you so much for your work on PhysFS, it's an amazing project!).<br>
><br>
> We've encountered a strange issue of a file not being found by PhysFS within<br>
> a zip archive. It occurs only when it's created with polycode's build tool,<br>
> which uses the minizip library for creating the zip archive (when I use my<br>
> Mac's Compress function to create the zip, the file can be seen by PhysFS<br>
> correctly).<br>
><br>
> The strange thing is it happens very inconsistently, with the order or even<br>
> amounts of other files in the archive impacting whether this file can be<br>
> seen or not (with all other files reading properly). I can unzip the file<br>
> correctly using most unzip tools and it seems that PhysFS is the only one<br>
> that has a problem seeing the file.<br>
><br>
> I stepped through PHYSFS_exists and it seems that it indeed fails in<br>
> zip_find_entry not finding the entry for said file.<br>
><br>
> Since PhysFS has no problem seeing the file in a zip file created by an<br>
> "official" zip tool, I am assuming that the issue is most likely with my not<br>
> setting proper flags while adding files to the archive, not with PhysFS<br>
> itself, but since other tools don't seem to have a problem unzipping the<br>
> file, I'm wondering if anyone has encountered a similar problem before.<br>
><br>
> Thank you!<br>
><br>
> - Ivan<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
physfs mailing list<br>
<a href="mailto:physfs@icculus.org">physfs@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/physfs" target="_blank">http://icculus.org/mailman/listinfo/physfs</a><br>
</div></div></blockquote></div><br></div>