You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/20 13:35:53 UTC

[GitHub] [airflow] TobKed commented on a change in pull request #6344: [AIRFLOW-5665] Add path_exists method to SFTPHook

TobKed commented on a change in pull request #6344: [AIRFLOW-5665] Add path_exists method to SFTPHook
URL: https://github.com/apache/airflow/pull/6344#discussion_r336779150
 
 

 ##########
 File path: airflow/contrib/hooks/sftp_hook.py
 ##########
 @@ -214,3 +214,12 @@ def get_mod_time(self, path):
         conn = self.get_conn()
         ftp_mdtm = conn.stat(path).st_mtime
         return datetime.datetime.fromtimestamp(ftp_mdtm).strftime('%Y%m%d%H%M%S')
+
+    def path_exists(self, path):
+        """
+        Returns True if a remote entity exists
+        :param path: full path to the remote file or directory
 
 Review comment:
   Thanks, I've applied your suggestion.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services