Skip to content

Error: the archive does not exit: #20

Description

@valery-lavrik

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);
	}

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions