181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
OFFileManager *fileManager = [OFFileManager defaultManager];
for (OFString *file in files) {
OFFileAttributes attributes =
[fileManager attributesOfItemAtPath: file];
if ([attributes.fileType isEqual: OFFileTypeDirectory])
[expandedFiles addObjectsFromArray:
[fileManager subpathsOfDirectoryAtPath: file]];
else
[expandedFiles addObject: file];
}
if (expandedFiles.count < 1) {
[OFStdErr writeLine: OF_LOCALIZED(@"add_no_file_specified",
|
|
|
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
OFFileManager *fileManager = [OFFileManager defaultManager];
for (OFString *file in files) {
OFFileAttributes attributes =
[fileManager attributesOfItemAtPath: file];
if ([attributes.fileType isEqual: OFFileTypeDirectory])
[expandedFiles addObjectsFromArray:
[fileManager subpathsOfDirectoryAtPath: file]];
else
[expandedFiles addObject: file];
}
if (expandedFiles.count < 1) {
[OFStdErr writeLine: OF_LOCALIZED(@"add_no_file_specified",
|