Connecting Databricks with FTP server

Prototype998
New Contributor III

hey i want to know how to connect Databricks with the FTP server ??? any help would be really appreciated

Rishabh-Pandey
Databricks MVP

hey @Punit Chauhan​ , refer this code to connect with FTP server

Host="" 
 
Login=""
 
Passwd=""
 
ftp_dir=""
 
ftp = ftplib.FTP(Host)
ftp.login(Login,Passwd)
ftp.cwd(ftp_dir)
files=ftp.nlst(ftp_dir)
print(files)

Rishabh Pandey

View solution in original post

Thanks will check this snippet @Rishabh Pandey​