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:ย 

unzip a password protected file using synapse notebook

anuintuceo
New Contributor

I have a zipped file. It has 3 csv files.  It is password protected. When I tried extracting it manually it will extract only with 7zip. 

I moved my zipped file to ADLS automatically and want to extract it with the password. 

How to unzip the file and read all the csv's

1 REPLY 1

-werners-
Esteemed Contributor III

 it is most probably possible.
If you use python, the zipfile library can do it, something like this:

with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
            zip_ref.extractall(path=extract_to, pwd=bytes(password,'utf-8'))

 In scala there is f.e. zip4j

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