I use react-native-document-picker to get the path to the file:
DocumentPicker.pickMultiple({
type: ['application/zip', 'application/octet-stream'],
copyTo: 'cachesDirectory',
}).then((res) => {
...
...
...
})
The path is correct and another library (react-native-zip-archive) works fine with it.
But I want to unzip the rar archives too. I connected your library and I get the error: Error: the archive does not exit:
Why does it work and yours gives an error?
let UNZIP_RES = false;
try {
// UNZIP_RES = await unzip(CBR.fileCopyUri, CBR_DIR); // zip only
// zip rar cbr cbz
UNZIP_RES = await Uncompress.extract({
filePath: CBR.fileCopyUri, // file:///data/user/0/com.lavrik_comics/cache/006672d6-30ed-4fc5-9c20-d568544a28d3/21497-_4.cbr
destination: CBR_DIR,
});
} catch (error) {
console.log('unzip error', CBR.fileCopyUri, ' -> ', CBR_DIR, error);
}

I use react-native-document-picker to get the path to the file:
The path is correct and another library (react-native-zip-archive) works fine with it.
But I want to unzip the rar archives too. I connected your library and I get the error: Error: the archive does not exit:
Why does it work and yours gives an error?