airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Llobera (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-442) SFTP Hook compatible with FTPHook
Date Wed, 17 Aug 2016 21:04:20 GMT
Gabriel Llobera created AIRFLOW-442:

             Summary: SFTP Hook compatible with FTPHook
                 Key: AIRFLOW-442
             Project: Apache Airflow
          Issue Type: New Feature
          Components: hooks
    Affects Versions: Airflow 1.7.0
            Reporter: Gabriel Llobera
            Assignee: Gabriel Llobera

This hook implements the same methods as FTPHook and  aims to be interchangeable with FTPHook
(although there are some caveats).

- In contrast with FTPHook describe_directory only returns size and modify. It doesn't return
unix.owner, unix.mode, perm,, unique and type.
- retrieve_file and store_file only take a local full path and not a buffer.
- If no mode is passed to create_directory it will be created with 777 permissions.

Everything else works the same as in SFTPHook and can be used as a drop in replacement.

This message was sent by Atlassian JIRA

View raw message