~ubuntu-branches/ubuntu/maverick/zipper.app/maverick

« back to all changes in this revision

Viewing changes to ZipArchive.m

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2006-09-20 20:12:10 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060920201210-9rezu749ctlciq16
Tags: 1.1-3
* Rebuild against latest libgnustep-gui.
* Updated build depends.
* Bump standards version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        // destination dir
74
74
        [args addObject:@"-d"];
75
75
        [args addObject:path];
 
76
        
76
77
        return [self runUnarchiverWithArguments:args];
77
78
}
78
79
 
112
113
        NSCalendarDate *calendarDate;
113
114
        FileInfo *info;
114
115
        NSArray *components;
115
 
                
 
116
 
116
117
                if ([line length] == 0)
117
118
                {
118
119
                        continue;
120
121
                
121
122
                components = [line componentsSeparatedByString:@" "];
122
123
                components = [components arrayByRemovingEmptyStrings];
 
124
 
123
125
                length = [[components objectAtIndex:0] intValue];
124
126
                ratio = [components objectAtIndex:3];
125
127
 
151
153
//------------------------------------------------------------------------------
152
154
- (NSData *)dataByRunningUnzip
153
155
{
154
 
        NSArray *args = [NSArray arrayWithObjects:@"-lv", [self path], nil];
 
156
        // l = list
 
157
        // v = display all zip infos (Ratio etc.)
 
158
        // q = quiet, this is important for skipping comments in archives
 
159
        NSArray *args = [NSArray arrayWithObjects:@"-lvq", [self path], nil];
155
160
        return [self dataByRunningUnachiverWithArguments:args];
156
161
}
157
162