sdks/python: enable recursive deletion for GCSFileSystem Paths (#33611)
* sdks/python: enable recursive deletion for GCS In this commit, we enable recursive deletion for GCS (Google Cloud Storage) paths, including directories and blobs. Changes include: - Updated the `delete` method to support recursive deletion of GCS directories (prefixes). - If the path points to a directory, all blobs under that prefix are deleted. - Refactored logic to handle both single blob and directory deletion cases. * sdks/python: update delete test case for GCS In this commit, we update the delete test to verify recursive deletion of directories (prefixes) in GCS. Changes include: - Added test for deleting a GCS directory (prefix) with multiple files. - Verified files under a directory are deleted recursively when using the delete method. * CHANGES.md: update CHANGES for `2.63.0` * CHANGES.md: capitalize `enable` word
显示
- CHANGES.md 1 个添加, 0 个删除CHANGES.md
- sdks/python/apache_beam/io/gcp/gcsfilesystem.py 2 个添加, 1 个删除sdks/python/apache_beam/io/gcp/gcsfilesystem.py
- sdks/python/apache_beam/io/gcp/gcsio.py 23 个添加, 2 个删除sdks/python/apache_beam/io/gcp/gcsio.py
- sdks/python/apache_beam/io/gcp/gcsio_test.py 28 个添加, 1 个删除sdks/python/apache_beam/io/gcp/gcsio_test.py
想要评论请 注册 或 登录