From 80a47ffa586b383081fd9ef9dec65aac76d72a86 Mon Sep 17 00:00:00 2001 From: Emile Sonneveld Date: Mon, 16 Dec 2024 14:58:01 +0100 Subject: [PATCH] Test adding suffix_to_remove, as directory was already reduced to it's parent and would be re-reduced to parent in write_assets. https://github.com/Open-EO/openeo-geopyspark-driver/issues/888 --- openeo_driver/datacube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openeo_driver/datacube.py b/openeo_driver/datacube.py index 8d5665fc..4855e358 100644 --- a/openeo_driver/datacube.py +++ b/openeo_driver/datacube.py @@ -587,7 +587,7 @@ def write_assets( log.warning( f"Exporting vector cube {self} to legacy, non-standard JSON format" ) - return self.to_legacy_save_result().write_assets(directory) + return self.to_legacy_save_result().write_assets(directory / "suffix_to_remove") gdf = self._as_geopandas_df(flatten_prefix=options.get("flatten_prefix")) if format_info.format == "Parquet":