code: def list(self, remote='.', extra=False, remove_relative_paths=False):
          
          if extra:
              self.tmp_output = []
              self.conn.dir(remote, self._collector)
              directory_list = split_file_info(self.tmp_output)
          else:
              directory_list = self.conn.nlst(remote)
  
          if remove_relative_paths:
              return list(filter(self.is_not_relative_path, directory_list))
  
          return directory_list
docs: Return directory list