140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
if (partNumber > 98)
return nil;
if (partNumber == lastPartNumber)
IRI = _archiveIRI;
else {
OFMutableIRI *copy = [[_archiveIRI mutableCopy] autorelease];
copy.path = [_archiveIRI.path.stringByDeletingPathExtension
stringByAppendingFormat: @".z%02u", partNumber + 1];
[copy makeImmutable];
IRI = copy;
}
return (OFSeekableStream *)[OFIRIHandler openItemAtIRI: IRI mode: @"r"];
}
|
|
>
|
|
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
if (partNumber > 98)
return nil;
if (partNumber == lastPartNumber)
IRI = _archiveIRI;
else {
OFMutableIRI *copy = [[_archiveIRI mutableCopy] autorelease];
[copy deletePathExtension];
[copy appendPathExtension: [OFString
stringWithFormat: @".z%02u", partNumber + 1]];
[copy makeImmutable];
IRI = copy;
}
return (OFSeekableStream *)[OFIRIHandler openItemAtIRI: IRI mode: @"r"];
}
|