Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 01:40 AM
After uploading the zip, copy the path to it from UI and unzip with something similar to:
import zipfile
import io
import os
zip_file = "/dbfs/tmp/tmp.zip"
with zipfile.ZipFile(zip_file, "r") as z:
for filename in z.namelist():
with z.open(filename) as f:
extracted_file = os.path.join("/dbfs/tmp/", filename)
with open(extracted_file, "wb") as output:
output.write(f.read())
My blog: https://databrickster.medium.com/