airflow/contrib/hooks/azure_data_lake_hook.py
def check_for_file(self, file_path):
        """
        Check if a file exists on Azure Data Lake.

        :param file_path: Path and name of the file.
        :type file_path: str
        :return: True if the file exists, False otherwise.
        :rtype: bool
        """
        try:
            files = self.connection.glob(file_path, details=False, invalidate_cache=True)
            return len(files) == 1
        except FileNotFoundError:
            return False
def check_for_file(self, file_path):
        try:
            files = self.connection.glob(file_path, details=False, invalidate_cache=True)
            return len(files) == 1
        except FileNotFoundError:
            return False
def check_for_file ( self , file_path ) : try : files = self . connection . glob ( file_path , details = False , invalidate_cache = True ) return len ( files ) == 1 except FileNotFoundError : return False
Check if a file exists on Azure Data Lake.

        :param file_path: Path and name of the file.
        :type file_path: str
        :return: True if the file exists, False otherwise.
        :rtype: bool
Check if a file exists on Azure Data Lake .