Menu

#823 duplicate filename - not case sensitive

open
nobody
None
5
2012-12-07
2008-04-21
nogo
No

Its a small bug. I try to pack a folder with the same filenames but they are case sensitive.

example:
/path/to/Filename != /path/to/filename

Discussion

  • nogo

    nogo - 2008-04-21

    case sensitive filenames

     
  • Richard Gomes

    Richard Gomes - 2009-03-11

    7-zip file manager will not display the .zip file directory properly on Windoze because it (the crappy OS) is not case sensitive.

    How to reproduce:

    Create a .zip file made of concurrent.jar and colt.jar.
    * concurrent.jar has the original thing, where directories are tipically EDU/something.
    * colt.jar has it's own packaged version of concurrent files in it, but starting with lowercase edu/something instead.
    You find these JAR files at http://www.mvnrepository.com/

    A tipical directoty would be on a decent operating system:

    edu/oswego/
    edu/oswego/cs/
    edu/oswego/cs/dl/
    edu/oswego/cs/dl/util/
    edu/oswego/cs/dl/util/concurrent/
    edu/oswego/cs/dl/util/concurrent/Barrier.class
    ... other files
    EDU/
    EDU/oswego/
    EDU/oswego/cs/
    EDU/oswego/cs/dl/
    EDU/oswego/cs/dl/util/
    EDU/oswego/cs/dl/util/concurrent/
    EDU/oswego/cs/dl/util/concurrent/Barrier.class
    ... other files

    On Windoze, because it is not case sensitive, you will see only capital EDU or lowercase edu, depending on the order you add colt.jar and concurrent.jar.

    In order to list the contents of your created .zip file, use 'jar', which is a Java tool, like this:

    java xf myzipfile.zip > dirlist.txt

    Thanks

    Richard Gomes
    http://www.jquantlib.org/index.php/User:RichardGomes

     
  • Richard Gomes

    Richard Gomes - 2009-03-11

    I meant:

    jar xf myzipfile.zip > dirlist.txt

     
  • Richard Gomes

    Richard Gomes - 2009-03-11

    A very simple way to create this scenario is:

    1. create a file called "a.txt"
    2. create a .zip file containing a.txt
    3. delete a.txt
    4. create a finel called "A.txt" (observe the capital A)
    5. Add A.txt to your .zip file.

    Thanks

     

Log in to post a comment.