Mostafatremox commited on
Commit
23d69de
·
verified ·
1 Parent(s): ca76e42

Delete unzip_script.py

Browse files
Files changed (1) hide show
  1. unzip_script.py +0 -16
unzip_script.py DELETED
@@ -1,16 +0,0 @@
1
- import zipfile
2
- import os
3
-
4
- # اسم ملف ZIP اللي رفعته
5
- zip_filename = "myfolder.zip"
6
- # اسم المجلد اللي هيتفك فيه الضغط
7
- extract_to = "myfolder"
8
-
9
- # اتأكد إن الملف موجود
10
- if os.path.exists(zip_filename):
11
- # فك الضغط
12
- with zipfile.ZipFile(zip_filename, 'r') as zip_ref:
13
- zip_ref.extractall(extract_to)
14
- print(f"تم فك الضغط داخل المجلد: {extract_to}")
15
- else:
16
- print(f"ملف {zip_filename} غير موجود في المسار الحالي.")