def _dir(self,path):
        """
        Call dir() on path, and use callback to accumulate
        returned lines. Return list of lines.
        """

        dirlist = []
        try:
            self.connection.dir(path, dirlist.append)
        except ftplib.error_perm:
            warnings.warn('Access denied for path %s'%path)
        return dirlist

        Call dir() on path, and use callback to accumulate
        returned lines. Return list of lines.
        
recipes/Python/275594_Recursive_nlst_wFTP_Directory_Tree/recipe-275594.py