winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Cannot create folder - while comparing two archives

Open d0vgan opened this issue 3 years ago • 1 comments

WinMerge 64-bit version 2.16.18 on Windows 10 Pro 20H2. Shows "Cannot create folder" while comparing two identical zip-archives.

Steps to reproduce:

  1. Download "AshesEp1_2063_V2_2.zip" from this site: https://www.moddb.com/mods/ashes-2063/downloads/ashes-episode-1ashes-2063pk3-only-v22
  2. Unpack the file "Ashes2063Enriched2_2.pk3" to some folder
  3. Copy the just unpacked "Ashes2063Enriched2_2.pk3" to some different folder
  4. Run WinMerge against these two files "Ashes2063Enriched2_2.pk3"
  5. WinMerge reports the following:
Cannot create folder : C:\Users\DV\AppData\Local\Temp\WinMerge_TEMP_3732\00000029\Textures
Cannot open output file : Системе не удается найти указанный путь. : C:\Users\DV\AppData\Local\Temp\WinMerge_TEMP_3732\00000029\Textures\RJMURICA
Cannot open output file : Системе не удается найти указанный путь. : C:\Users\DV\AppData\Local\Temp\WinMerge_TEMP_3732\00000029\Textures\RJDUMGAG
Cannot open output file : Системе не удается найти указанный путь. : C:\Users\DV\AppData\Local\Temp\WinMerge_TEMP_3732\00000029\Textures\AMBBACK
Cannot open output file : Системе не удается найти указанный путь. : C:\Users\DV\AppData\Local\Temp\WinMerge_TEMP_3732\00000029\Textures\AMBFRONT
...

I assume it is because the "Ashes2063Enriched2_2.pk3" contains a file with a name "TEXTURES" (in capital) and a folder with a name "Textures" (Camel case). Looks like the zip-archive supports UNIX-like file system (treating file names with different case as separate files) whereas Windows files system does not support this. Could WinMerge somehow handle such situation (by e,g, auto-renaming the conflicting names)?

d0vgan avatar Feb 09 '22 10:02 d0vgan

Could WinMerge somehow handle such a situation (by e,g, auto-renaming the conflicting names)?

Unfortunately, WinMerge does not have that auto-renaming feature.

WinMerge uses the 7-Zip DLL to extract the zip file. Extracting that file with 7-Zip will cause the same error, but if there is a way to avoid the error with 7-Zip, it may be possible to avoid the error with WinMerge.

sdottaka avatar Feb 09 '22 11:02 sdottaka