jonas-p / go-shp

Go library for reading and writing ESRI Shapefiles. Pure Golang implementation based on the ESRI Shapefile technical description.
MIT License
255 stars 67 forks source link

fix: zip file with hidden directories or __MACOSX directory #50

Open geoduf opened 3 years ago

geoduf commented 3 years ago

Compressing files with Mac OS create a __MACOSX directory containing files metadata. With these files, we have duplicate .shp files and the library raises an error here: https://github.com/jonas-p/go-shp/blob/master/zipreader.go#L43 To fix it, we need to filter this directory (and hidden directories)