From ab9fdf806cc6b6195f63e13e0af7a01ff7a4e622 Mon Sep 17 00:00:00 2001 From: willjnz Date: Wed, 29 Apr 2026 13:30:27 +1000 Subject: [PATCH] Fix uneeded code that was breaking nested zip internal paths. --- csdr/cli_conversion.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/csdr/cli_conversion.py b/csdr/cli_conversion.py index 229e589..9ea1873 100644 --- a/csdr/cli_conversion.py +++ b/csdr/cli_conversion.py @@ -105,13 +105,6 @@ def convert_zipfile_to_parquet( zip_bytes.seek(0) # Ensure pointer is at start with ZipMemoryFile(zip_bytes) as z: - files_in_zip = z.listdir() - logger.info(f"Files in zip: {files_in_zip}") - logger.info(f"Requested internal path: {source_internal_path_name}") - if source_internal_path_name not in files_in_zip: - raise CSDRException( - f"Internal path {source_internal_path_name} not found in zip file." - ) # Open the shapefile within the ZIP with z.open(source_internal_path_name) as src: gdf = gpd.GeoDataFrame.from_features(src, crs=src.crs)