ouch icon indicating copy to clipboard operation
ouch copied to clipboard

Zip file compressed by ouch in Windows cannot be correctly decompressed by ouch in Linux

Open lucidfrontier45 opened this issue 6 months ago • 0 comments

Version

0.6.1

Description

Just as discribed in the title. The problem can be reproduced by the following procedure.

test_dir.zip

Windows side

Prepare a directory structure like this

test_dir/
  test.txt

Compress it with ouch

ouch.exe compress test_dir test_dir.zip

Linux side

Decompress the zip file

ouch decompress test_dir.zip

Current Behavior

Decompression result is wrong

test_dir/
    test_dir <- this is an empty directory
    'test_dir\test.txt' <- file content is correct but file name is wrong

Looks like path/file name handling in Windows is wrong.

Expected Behavior

The decompressed directory structure is the same as input in the Windows side

test_dir/
  test.txt

Additional Information

No response

lucidfrontier45 avatar Jul 08 '25 09:07 lucidfrontier45