Separate extraction and decompression logic in datasets.utils.extract_archive (#3443)
* generalize extract_archive * [test] re-enable extraction tests on windows * add tests for detect_file_type * add error messages to detect_file_type * Revert "[test] re-enable extraction tests on windows" This reverts commit 7fafebb0f6b4c49bd72c4b5e0a0b4b8c432bce57. * add utility functions for better mock call checking * add tests for decompress * simplify logic by using pathlib * lint * Apply suggestions from code review Co-authored-by:Francisco Massa <fvsmassa@gmail.com> * make decompress private * remove unnecessary checks * add error message * fix mocking * add remaining tests * lint Co-authored-by:
Francisco Massa <fvsmassa@gmail.com>
Showing
Please register or sign in to comment