UnZip files on iPhone/iPod

by alex 3. May 2009 15:45

//Include files from attached archive

 

#import "ZipArchive.h"

NSString *filePath = @"/Users/alex/Test/04/zTest/test.zip";

ZipArchive *z = [[ZipArchive alloc] init];

 

[z UnzipOpenFile:filePath];

[z UnzipFileTo:@"/Users/alex/Test/04" overWrite:YES];

[z UnzipCloseFile];


ZipArchive.zip (37.65 kb)

Tags:

General

Export from SVN and ZIP with date/time in filename

by alex 25. February 2009 07:59

#!/bin/bash

#Export folder from SVN

#ZIP it and add date and time to file name 

svn export https://svn.server.com/svn/ --force --username myusername --password mypassword NameOutFolder

filename= NameOutFolder$(date "+_%m_%d_%y_%k_%M")

zip -r -q $filename.zip NameOutFolder

Tags: , ,

General

UnZip NSData

by alex 14. February 2009 15:05

NSURL *xmlURL =  [[NSURL alloc] initWithString:streamerURLString2];

NSData *data = [[NSData alloc] initWithContentsOfURL:xmlURL];

 

//unzip data

NSData *unzippedData = [data inflate];


Tags: ,

General

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen