Spaces:
Sleeping

FINBOT-END / app /unzip.py
PavanKumarD's picture
Create unzip.py
278fb08 verified
Raw History Blame Contribute Delete
418 Bytes
import zipfile
import os
zip_path = "nse_vector_base.zip" # path to your uploaded zip
extract_path = "nse_vector_base/" # folder to extract into
# Extract only if not already extracted
if not os.path.exists(extract_path):
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall(extract_path)
print("✅ Unzipped to:", extract_path)
print("📂 Files:", os.listdir(extract_path))