I'd like to retrieve files' name of a directory and I use the method ftplib.retrlines('NLST' + path)
.
It prints all files' names in the directory path
. But I want to store those files' names in a container, e.g., a list, instead of printing them in the console. How to do that ?