Hi,
I have created tar file using following command:-
tar cvf story4read.tar story4read/
this command generated a tar file, When I try to untar the tar file, I am getting this Error
tar.lua:139: attempt to index local ‘file_handle’ (a nil value)
stack traceback:
…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:139: in function ‘untar’
…tionsRR/coronaPractice/TarfileExtractSample/main.lua:69: in function ‘unTarAllFiles’
But when I create tar file with BetterZip , it is working properly.
So, Please let me know that, how can we create uncompressed tar file without “BetterZip”. (or I have to buy BetterZip as its trial version already over).
Note:- same problem posted on http://forums.coronalabs.com/topic/28888-best-way-to-download-new-content/ too
Edit:- After above commands, I made tar file from inside the directory
ttmacmini001:story4read abhishekkumar.jain$ tar cvf TAR.tar *.*
I used this command too
ttmacmini001:story4read abhishekkumar.jain$ tar -cvf TAR.tar *.*
After that also, I’m facing problem but Error type is changed ,now I am getting following Error :-
2014-05-01 11:57:09.255 Corona Simulator[521:707] Invalid header magic
2014-05-01 11:57:09.255 Corona Simulator[521:707] Runtime error
…ctionsRR/coronaPractice/TarfileExtractSample/tar.lua:120: attempt to index local ‘header’ (a boolean value)
stack traceback: