Skip to content

SFTP Sensor - Allow Use of Modified Time #21655

Description

@AdamPaslawski

Description

The SFTP sensor uses the existence of a modified time to determine if a file exists in an SFTP location.

I would like to propose extending the sensor to allow for a newer_than option, since we already get the modified time in the current implementation of poke() this would be a relatively simple but useful extension.

Use case/motivation

I want to be able to use this sensor and ensure it succeeds if a file exists and is "fresh" enough.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions