You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2019/08/04 11:33:00 UTC
[jira] [Commented] (AIRFLOW-1450) contrib FileSensor operator
always True
[ https://issues.apache.org/jira/browse/AIRFLOW-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899620#comment-16899620 ]
jack commented on AIRFLOW-1450:
-------------------------------
Basically same issue as https://issues.apache.org/jira/browse/AIRFLOW-4718
> contrib FileSensor operator always True
> ---------------------------------------
>
> Key: AIRFLOW-1450
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1450
> Project: Apache Airflow
> Issue Type: Bug
> Components: contrib
> Reporter: Diogo Franco
> Priority: Minor
>
> The *FileSensor* operator in _contrib_ returns True regardless of whether the file exists.
> {code:java}
> try:
> files = [f for f in walk(full_path)]
> except:
> return False
> return True
> {code}
> Iterating over the _walk(full_path)_ generator simply returns an empty list when _full_path_ does not exist, instead of an exception.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)