I\'m using this script to connect to sample ftp server and list available directories:
from ftplib import FTP ftp = FTP(\'ftp.cwi.nl\') # connect to host, defa
Nslt will list an array for all files in ftp server. Just check if your folder name is there.
from ftplib import FTP ftp = FTP('yourserver') ftp.login('username', 'password') folderName = 'yourFolderName' if folderName in ftp.nlst(): #do needed task