From: Stephen Anderson > > See also: > > http://stackoverflow.com/questions/32467871/unzip-gives-checkdir-error- > directory-exists-but-is-not-a-directory#32468314 > > The fact that 7z handles this and unzip does not indicates that the > problem > is fixable..
FWIW, it seems that the same issue is present with tar: $ touch foo.exe $ mkdir -v foo mkdir: created directory 'foo' $ ls -l total 0 drwxr-x---+ 1 knellis Domain Users 0 Sep 9 09:46 foo -rw-r----- 1 knellis Domain Users 0 Sep 9 09:46 foo.exe $ tar cvf bar.tar foo foo/ $ rmdir -v foo rmdir: removing directory, 'foo' $ tar rvf bar.tar foo foo $ rm -v foo removed 'foo' $ ls -l total 12 -rw-r----- 1 knellis Domain Users 10240 Sep 9 09:47 bar.tar $ tar tf bar.tar foo/ foo $ tar xvf bar.tar foo/ foo $ ls -l total 12 -rw-r----- 1 knellis Domain Users 10240 Sep 9 09:47 bar.tar -rw-r----- 1 knellis Domain Users 0 Sep 9 09:46 foo $ So, tar indicates that it extracted both directory foo/ and file foo, but the result indicates that the file won the conflict. If tar actually did extract the directory first, I'd think that it's next attempt to extract the file with the same name would fail, but that's not what happened. --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple