airflow/contrib/hooks/ftp_hook.py
def list_directory(self, path, nlst=False):
        """
        Returns a list of files on the remote system.

        :param path: full path to the remote directory to list
        :type path: str
        """
        conn = self.get_conn()
        conn.cwd(path)

        files = conn.nlst()
        return files
def list_directory(self, path, nlst=False):
        conn = self.get_conn()
        conn.cwd(path)

        files = conn.nlst()
        return files
def list_directory ( self , path , nlst = False ) : conn = self . get_conn ( ) conn . cwd ( path ) files = conn . nlst ( ) return files
Returns a list of files on the remote system.

        :param path: full path to the remote directory to list
        :type path: str
Returns a list of files on the remote system .