allenai / cached_path

A file utility for accessing both local and remote files through a unified interface.
https://cached-path.readthedocs.io/
Apache License 2.0
35 stars 12 forks source link

Checking for zipfile using suffix not magic number #209

Closed ksteimel closed 8 months ago

ksteimel commented 10 months ago

This small MR seeks to fix issue #208 . There's probably a more general way to check if something is a zipfile without identifying zipfiles inside tar files.

dirkgr commented 8 months ago

Looks like @epwalsh already fixed this in a different way. Thanks for taking the initiative here!