122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
.stringByDeletingPathExtension;
if (app->_outputLevel >= 0)
[of_stdout writeString: OF_LOCALIZED(@"extracting_file",
@"Extracting %[file]...",
@"file", fileName)];
if (![app shouldExtractFile: fileName
outFileName: fileName])
return;
output = [OFFile fileWithPath: fileName
mode: @"w"];
setPermissions(fileName, app->_archivePath);
while (!_stream.atEndOfStream) {
ssize_t length = [app copyBlockFromStream: _stream
toStream: output
fileName: fileName];
|
|
<
|
<
|
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
.stringByDeletingPathExtension;
if (app->_outputLevel >= 0)
[of_stdout writeString: OF_LOCALIZED(@"extracting_file",
@"Extracting %[file]...",
@"file", fileName)];
if (![app shouldExtractFile: fileName outFileName: fileName])
return;
output = [OFFile fileWithPath: fileName mode: @"w"];
setPermissions(fileName, app->_archivePath);
while (!_stream.atEndOfStream) {
ssize_t length = [app copyBlockFromStream: _stream
toStream: output
fileName: fileName];
|