Skip to content

Conversation

wietzesuijker
Copy link
Contributor

@wietzesuijker wietzesuijker commented Oct 9, 2025

Retry logic for failed S3 writes used os.path.exists and shutil.rmtree, causing encoding conflicts with S3 paths.

Replace with fs_utils patterns for S3-aware filesystem access: fs.exists and fs.rm(recursive=True).

Fixes S3 encoding conflicts in Sentinel-1 conversions with retry logic.

identified during data-pipeline iterations https://github.com/EOPF-Explorer/data-pipeline/pulls

- Replace os.path.exists() with fs.exists() for S3 compatibility
- Use fs_utils.get_filesystem() for both local and S3 paths
- Fixes encoding conflict when retrying failed S3 writes
- Aligns with existing fs_utils patterns in codebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant