def list(self, remote='<STR_LIT:.>', extra=False, remove_relative_paths=False):
if extra:<EOL><INDENT>self.tmp_output = []<EOL>self.conn.dir(remote, self._collector)<EOL>directory_list = split_file_info(self.tmp_output)<EOL><DEDENT>else:<EOL><INDENT>directory_list = self.conn.nlst(remote)<EOL><DEDENT>if remove_relative_paths:<EOL><INDENT>return list(filter(self.is_not_relative_path, directory_list))<EOL><DEDENT>return directory_list<EOL>
Return directory list