webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

تت

Open nizaralamri opened this issue 4 months ago • 1 comments

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

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

nizaralamri avatar Aug 10 '25 20:08 nizaralamri

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.

github-actions[bot] avatar Aug 10 '25 20:08 github-actions[bot]