cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

1 ACCEPTED SOLUTION

Accepted Solutions

Rishabh264
Honored Contributor II

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)

View solution in original post

2 REPLIES 2

Rishabh264
Honored Contributor II

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)

Thanks will check this snippet @Rishabh Pandeyโ€‹ 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.