Skip to content

Return errors when deleting file (or files) fails? #86

@michallepicki

Description

@michallepicki

Currently the Delete action just returns :ok, no matter what the adapter returned.

The local adapter would return an error tuple when that fails
And similarly the GCS adapter I'm using would also return an error tuple
The S3 adapter on the other hand discards the result and always returns :ok

I have a use case where I would like to check the result of file removal and act accordingly depending on the error. Would it be possible to expose results of that action? Would that be useful? I can work on a PR. This seems like a breaking change so maybe only when appropriate option is passed? I would also change the S3 adapter to just return what ExAws returned.

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