cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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

Rishabh-Pandey
Esteemed Contributor

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

2 REPLIES 2

Rishabh-Pandey
Esteemed Contributor

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

Thanks will check this snippet @Rishabh Pandeyโ€‹ 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group