LzmaSDKObjC
LzmaSDKObjC copied to clipboard
LzmaSDKObjCExtractCallback.mm have some problem!
When i use function
- (BOOL) extract:(nullable NSArray<LzmaSDKObjCItem *> *) items toPath:(nullable NSString *) path withFullPaths:(BOOL) isFullPaths
like this
[reader extract:items
toPath:deleteLastpath
withFullPaths:YES];
It isn't giving dictionary.
I found "LzmaSDKObjCExtractCallback.mm" line 105 "subPath" is wrong.
It is ok. As follows:
NSString * subPathNew =[fullPath stringByAppendingString: subPath]; if ([manager fileExistsAtPath:subPathNew isDirectory:&isDir]) { if (!isDir) { this->setLastError(E_ABORT, LINE, FILE, "Destination path: [%s] exists in directory: [%s] and it's file", [subPath UTF8String], [fullPath UTF8String]); return E_ABORT; } } else if (![manager createDirectoryAtPath:subPathNew withIntermediateDirectories:YES attributes:nil error:&error] || error) { this->setLastError(E_ABORT, LINE, FILE, "Can't create subdirectory: [%s] in directory: [%s]", [subPath UTF8String], [fullPath UTF8String]); return E_ABORT; }