Spaces:
Build error
Build error
File size: 612 Bytes
e281fc5 7bf39a7 1e640c2 7bf39a7 1e640c2 7bf39a7 1e640c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import zipfile
import os
# ุงุณู
ู
ูู ุงูู zip
zip_file_path = "defaults.zip" # ุบูุฑ "your_file.zip" ูุงุณู
ุงูู
ูู ุงููู ุฑูุนุชู
# ู
ุณุงุฑ ุฌุฏูุฏ ููู ุงูู
ููุงุช ููู
extract_path = "./output" # ููุนู
ู ู
ุฌูุฏ ุงุณู
ู "output" ูู ุงูู
ุดุฑูุน
# ุงุชุฃูุฏ ุฅู ุงูู
ุฌูุฏ ู
ูุฌูุฏุ ููู ู
ุด ู
ูุฌูุฏ ููุนู
ูู
os.makedirs(extract_path, exist_ok=True)
# ูู ุถุบุท ุงูู
ูู ูู ุงูู
ุฌูุฏ ุงูู
ุญุฏุฏ
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
zip_ref.extractall(extract_path)
print("ุชู
ูู ุงูุถุบุท ูู ู
ุฌูุฏ 'output'!")
|