Closed josephine-funken closed 8 months ago
@josephine-funken thank you for this great work! there seems to be a merge conflict which needs to be removed first -- if you have any questions how to resolve it feel free to reach out.
All modified lines are covered by tests :white_check_mark:
Comparison is base (
417a305
) 100.00% compared to head (3118012
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Added functionality to remove top-level directories to downloads.download_and_extract_archive()
and added parameter to corresponding test.
Description
Removes top-level directories from extracted files if its only child is a directory. This top-level directory in the archive is unnecessary and creates longer file paths than needed.
Fixes issue #401
Implemented changes
Dataset.extract()
,dataset_download.extract_dataset()
andutils.archives.extract_archive()
.Type of change
How Has This Been Tested?
tests/utils/archives_test.test_extract_archive_destination_path_None()
test_extract_archive_destination_path_not_None()
Checklist: