Skip to content

difficult to perform delete_object request instead of delete_objects using S3FileSystem #850

Closed
@tboddyspargo

Description

@tboddyspargo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions