Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1311 Bug with Duplicate filename

open
nobody
None
5
2012-12-07
2012-07-03
Jean-F Jolin
No

I am creating an archive based on a {listfile}. The list contains discrete filenames which are only symbolic files (.lnk).
Here is the output of 3 consecutives commands. The first two work fine. The third one shows the bug.
For the last command, the archive is not created.

Begin of output
___________________________________________________________________________________

H:>"C:\Program Files\7-Zip\7z.exe" a this.zip -scsWIN -r- @ListeLiens_ok.txt

7-Zip 9.22 beta Copyright (c) 1999-2011 Igor Pavlov 2011-04-18
Scanning

Creating archive this.zip

Compressing AfficherArborescence.lnk
Compressing Streams.zip.lnk
Compressing Tree.lnk

Everything is Ok

H:>del this.zip

H:>"C:\Program Files\7-Zip\7z.exe" a this.zip -scsWIN -r- @ListeLiens_bug.txt

7-Zip 9.22 beta Copyright (c) 1999-2011 Igor Pavlov 2011-04-18
Scanning

Creating archive this.zip

Error:
Duplicate filename:
AfficherArborescence.lnk
AfficherArborescence.lnk
___________________________________________________________________________________
End of output

Here is the content of the listfile from the first command: ListeLiens_ok.txt

Begin of file
___________________________________________________________________________________
H:\Win XP\Mes documents\CPP\MesProgrammes\Streams\Streams.zip.lnk
H:\Win XP\Mes documents\CPP\MesProgrammes\Tree\Tree.lnk
H:\Win XP\Mes documents\CPP\MesProgrammes\Tree\AfficherArborescence\AfficherArborescence.lnk
___________________________________________________________________________________
End of file

Here is the content of the listfile from the third command: ListeLiens_bug.txt

Begin of file
___________________________________________________________________________________
H:\Win XP\Mes documents\CPP\MesProgrammes\Streams\Streams.zip.lnk
H:\Win XP\Mes documents\CPP\MesProgrammes\Tree\Tree.lnk
H:\Win XP\Mes documents\CPP\MesProgrammes\Tree\AfficherArborescence\AfficherArborescence.lnk
H:\Win XP\Mes documents\Visual Studio 2005\Projects\C++\Native\Tree\AfficherArborescence\AfficherArborescence.lnk
___________________________________________________________________________________
End of file

The targets pointed by the 2 symbolic links do not correspond to a unique folder. They are different.
In facts they reference each other.

The only thing they have in commun is the last portion of their path filename. They both end with AfficherArborescence.lnk

Hope i made the point clear.

7-Zip is a real good product. We do all we can to make it better. Thanks again.

Discussion

  • Jean-F Jolin
    Jean-F Jolin
    2012-07-06

    The {listfile} contains shell links not symbolic links. Thus the first line should be read:

    I am creating an archive based on a {listfile}. The list contains discrete filenames which are only shell link files (.lnk).

    And the end, a line should be read:

    The targets pointed by the 2 shell links do not correspond to a unique folder. They are different.

    Sorry my mistake.