List Filenames On Ftp Without The Meta In Front
I am trying to get a list of filenames in a ftp directory. I tried the following: import ftplib from os import listdir from os.path import isfile, join class FtpObj: def __ini
Solution 1:
You can use this function of ftplib.FTP to get a list of filenames:
files = ftp.nlst()
From the ftplib docs
Post a Comment for "List Filenames On Ftp Without The Meta In Front"