MCAmiga & LHA Archives
Working on the lha handling inside MCAmiga, would be nice to have it like in Midnight commander where you can directly browse inside archive, add, remove files, and even edit files inside.
I got it somehow to work, still with some limitations, for example, LHA you cant create an empty directory, so I create the directory with a ‚delete_me‘ file inside. Also when the directory is created „merged“ on adding (usually means added together with its parent directory) you cant remove it, if will stay there, even empty. But still it works already very nicely. Until now you can copy files to archive, copy file from archive, make a new directory, rename files. View and edit files (also with external tools, file is extracted to temp dir). Also introduced the Tools menu (F2) well known from midnight commander.
I did not try on AROS/MorphOS or so until now, hmm curious if all LHA versions are the same, I should try some different versions đ
Well done!
You have to use option -e for empty directories.
actually I tried that, I does not work this way. it only adds the empty directory if you add the parent dir with wildcard or so
imagine a situation
testdir/innertestdir/
testdir/testfile.txt
if you add via:
lha -e a test.lha testdir
it will add the empty innertestdir
but if you have only an empty
testdir/
lha -e a test.lha testdir
will result it „No files match action pattern“ and nothing will be added.