You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Diogo Franco (JIRA)" <ji...@apache.org> on 2017/07/24 23:55:00 UTC

[jira] [Created] (AIRFLOW-1450) FileSensor operator in contrib is always True

Diogo Franco created AIRFLOW-1450:
-------------------------------------

             Summary: FileSensor operator in contrib is 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


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
(v6.4.14#64029)