Skip to content

تت #1952

@nizaralamri

Description

@nizaralamri

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions