def list_folder(self, path):
        path = self._realpath(path)
        try:
            out = []
            flist = os.listdir(path)
            for fname in flist:
                attr = SFTPAttributes.from_stat(
                    os.lstat(os.path.join(path, fname))
                )
                attr.filename = fname.encode("utf-8")
                out.append(attr)
            return out
        except __HOLE__ as e:
            return SFTPServer.convert_errno(e.errno)
dataset/ETHPy150Open unbit/sftpclone/sftpclone/t/stub_sftp.py/StubSFTPServer.list_folder