lhasa
lhasa copied to clipboard
Lhasa cannot extract empty directories from amiga lha archives.
lhasa stops unpacking an archive when it encounters an empty directory. Tested with an amiga lha archive.
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
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.