Skip to content

SFTPOperator DELETE operation should not error if the file/directory is already absent #56190

Closed
opensource4you/readme
#44

Description

@marcbal

Description

SFTPOperator DELETE operation should not error if the file/directory is already absent.

If having this as the default behaviour is not appropriate, I would suggest adding a parameter to ignore this specific error.

Use case/motivation

I have a SFTPOperator deleting a folder, so a subsequent SFTPOperator can PUT a new version of the folder's content.
When the folder does not exists initialy, the first operator crashes.
I expect the DELETE operation to succeed by default when there is nothing to delete, or at least have the option to ignore the error in case the directory is non existant (I don't want to ignore other error, like connection failure, permission issues, ...)

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Sep 28, 2025
  2. boring-cyborg commented on Sep 28, 2025

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. added and removed
    needs-triage
    on Sep 29, 2025
  4. kaxil commented on Sep 29, 2025

    @kaxil
    Member

    Emitting a warning if file is already absent is fine.

  5. MadScientistBR commented on Sep 29, 2025

    @MadScientistBR

    Hello everyone,

    As a new contributor looking to get involved, I'd love to take on this as my first issue. I'll start working on it and will aim to submit a PR in the coming days.

    thanks!

  6. Sucheta-Gupta commented on Sep 29, 2025

    @Sucheta-Gupta

    Hi

    I would like to submit a PR for this .
    cc : @rawwar

    Best
    Sucheta

  7. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @Sucheta-Gupta We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

  8. potiuk commented on Mar 2, 2026

    @potiuk
    Member

    @MadScientistBR We are unassigning you from this issue as part of our updated assignment policy.

    This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.

    We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions