MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / nlst

Method nlst

tools/python-3.11.9-amd64/Lib/ftplib.py:547–554  ·  view source on GitHub ↗

Return a list of files in a given directory (default the current).

(self, *args)

Source from the content-addressed store, hash-verified

545 return self.voidcmd(cmd)
546
547 def nlst(self, *args):
548 '''Return a list of files in a given directory (default the current).'''
549 cmd = 'NLST'
550 for arg in args:
551 cmd = cmd + (' ' + arg)
552 files = []
553 self.retrlines(cmd, files.append)
554 return files
555
556 def dir(self, *args):
557 '''List a directory in long form.

Callers

nothing calls this directly

Calls 1

retrlinesMethod · 0.95

Tested by

no test coverage detected