Closed
Description
It appears that, while the implementation of _rm
in AsyncFileSystem
invokes the delete_object
API, the S3FileSystem
class overrides it with a version that uses the delete_objects
API. This is usually fine, but since GCS doesn't support delete_objects
, S3FileSystem.rm(path)
will fail on GCS.
It would be great if S3FileSystem
provided an option to delete with the delete_object
API instead of forcing the use of delete_objects
.
In the meantime, I've had to resort to doing this:
sync(fs.loop, super(S3FileSystem, fs)._rm, path=final_path, recursive=recursive)
Which allows me to force the use of the _rm
method on the AsyncFileSystem
(parent class), but doesn't have a blocking/synchronous entrypoint that I could find.
Metadata
Metadata
Assignees
Labels
No labels