تت
Describe the bug
import zipfile import os
إنشاء مجلد المشروع
project_dir = "/mnt/data/HomeNS_App" os.makedirs(project_dir, exist_ok=True)
حفظ ملف React App.js (من الكود المحدث)
app_js_code = """<ضع الكود المحدث هنا>""" with open(os.path.join(project_dir, "App.js"), "w") as f: f.write(app_js_code)
ضغط المشروع
zip_path = "/mnt/data/HomeNS_App.zip" with zipfile.ZipFile(zip_path, 'w') as zipf: for root, dirs, files in os.walk(project_dir): for file in files: file_path = os.path.join(root, file) zipf.write(file_path, arcname=os.path.relpath(file_path, project_dir))
`zip_path```
Link to the blitz that caused the error
ر
Steps to reproduce
import zipfile import os
إنشاء مجلد المشروع
project_dir = "/mnt/data/HomeNS_App" os.makedirs(project_dir, exist_ok=True)
حفظ ملف React App.js (من الكود المحدث)
app_js_code = """<ضع الكود المحدث هنا>""" with open(os.path.join(project_dir, "App.js"), "w") as f: f.write(app_js_code)
ضغط المشروع
zip_path = "/mnt/data/HomeNS_App.zip" with zipfile.ZipFile(zip_path, 'w') as zipf: for root, dirs, files in os.walk(project_dir): for file in files: file_path = os.path.join(root, file) zipf.write(file_path, arcname=os.path.relpath(file_path, project_dir))
zip_path
Expected behavior
import zipfile import os
إنشاء مجلد المشروع
project_dir = "/mnt/data/HomeNS_App" os.makedirs(project_dir, exist_ok=True)
حفظ ملف React App.js (من الكود المحدث)
app_js_code = """<ضع الكود المحدث هنا>""" with open(os.path.join(project_dir, "App.js"), "w") as f: f.write(app_js_code)
ضغط المشروع
zip_path = "/mnt/data/HomeNS_App.zip" with zipfile.ZipFile(zip_path, 'w') as zipf: for root, dirs, files in os.walk(project_dir): for file in files: file_path = os.path.join(root, file) zipf.write(file_path, arcname=os.path.relpath(file_path, project_dir))
zip_path
Parity with Local
- [x] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
We noticed that you did not provide a StackBlitz or Bolt reproduction link. Please update the issue and add a link to a public project.