API — pysftp 0.2.9 documentation - Read the Docs
pysftp.readthedocs.io › en › release_0listdir(remotepath='.') ¶ return a list of files/directories for the given remote path. Unlike, paramiko, the directory listing is sorted. listdir_attr(remotepath='.') ¶ return a list of SFTPAttribute objects of the files/directories for the given remote path. The list is in arbitrary order. It does not include the special entries ‘.’ and ‘..’.
SFTP — Paramiko documentation
docs.paramiko.org › en › stableThis method is meant to mirror os.listdir as closely as possible. For a list of full SFTPAttributes objects, see listdir_attr. Parameters: path ( str) – path to list (defaults to '.') listdir_attr (path='.') ¶ Return a list containing SFTPAttributes objects corresponding to files in the given path. The list is in arbitrary order.