lhasa icon indicating copy to clipboard operation
lhasa copied to clipboard

Lhasa cannot extract empty directories from amiga lha archives.

Open alfredone opened this issue 2 years ago • 2 comments

lhasa stops unpacking an archive when it encounters an empty directory. Tested with an amiga lha archive.

alfredone avatar Jan 11 '22 15:01 alfredone

MainDir.lha.zip

This is the content of MainDir.lha:

MainDir

00_File.txt 01_Dir

File01.txt

02_EmptyDir 03_Dir

File01.txt

04_File.txt

Extracting with lhasa gives the following result:

MainDir

00_File.txt 01_Dir

File01.txt

alfredone avatar Jan 11 '22 16:01 alfredone

This is probably the same issue as issue #31.

The problem is that the item that should have been a directory (type "lhd") is erroneously stored as a regular file (type "lh0"), due to a bug in whatever program created the LHA file. The item does not have a filename; it only has a directory name. Lhasa treats a file without a filename as a fatal error.

jsummers avatar Jan 12 '22 15:01 jsummers