timblakely opened a new issue, #27605:
URL: https://github.com/apache/beam/issues/27605

   ### What happened?
   
   In the Python SDK, `GCSFileSystem.delete` suggests [directories will be 
deleted 
recursively](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/gcsfilesystem.py#L350),
 but that doesn't appear to be the case...?
   
   e.g.I have bucket `blakely_dev` and  the following paths:
   
   `gs://blakely_dev/_staging/iteration/1/result`
   `gs://blakely_dev/_staging/iteration/1/output-00000-of-00002`
   `gs://blakely_dev/_staging/iteration/1/output-00001-of-00002`
   
   If I pass `gs://blakely_dev/_staging/` to delete, despite it being a 
directory and a [wildcard being 
appended](https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/gcsfilesystem.py#L359)
 if it ends with a `/`, the following `.match()` call matches neither 
subdirectories nor the `result` or `output-0000.*` files.
   
   ### Issue Priority
   
   Priority: 3 (minor)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to