archive-tar

“Untar” file on iPhone

放肆的年华 提交于 2020-01-21 02:59:26
问题 I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder. I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast. I've investigated solutions like http://www.feep.net/libtar/, but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform. (I felt like I should just be able to do a

How do I get PEAR.php with Composer?

那年仲夏 提交于 2019-12-06 12:21:50
问题 I installed pear/archive_tar to work with Phing, which I installed with Composer. However, I received this error: BUILD FAILED exception 'BuildException' with message 'Error reading project file [wrapped: You must have installed the PEAR Archive_Tar class in order to use TarTask.]' in vendor/phing/phing/classes/phing/parser/ProjectConfigurator.php:197 I added the PEAR repository to Composer and updated, but it still did not work. The second half of this question branched off here. 回答1: I set

“Untar” file on iPhone

我的梦境 提交于 2019-11-30 12:26:11
I'm writing an iPhone app which downloads a tar-gzipped file from a Webserver, then needs to unarchive this file so that it can be copied into the app's Documents folder. I'm using tar/gzip because I want to download a whole bunch of small files in one HTTP request, to make everything nice and fast. I've investigated solutions like http://www.feep.net/libtar/ , but as a C/Objective-C newb, I can't get any of them to compile for the iPhone platform. (I felt like I should just be able to do a system call to "tar -zxvf myfile.tar.gz", but it would appear it's not that easy!) So is there a simple