Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -590,7 +590,7 @@ async def create_file_structure(websocket, data, base_path='.'):
|
|
590 |
await create_file_structure(websocket,child, base_path=folder_path)
|
591 |
elif data['type'] == 'file':
|
592 |
file_path = os.path.join(base_path, data['name'])
|
593 |
-
with open(file_path, 'w'
|
594 |
file.write(data['content'])
|
595 |
|
596 |
event = {
|
|
|
590 |
await create_file_structure(websocket,child, base_path=folder_path)
|
591 |
elif data['type'] == 'file':
|
592 |
file_path = os.path.join(base_path, data['name'])
|
593 |
+
with open(file_path, 'w') as file:
|
594 |
file.write(data['content'])
|
595 |
|
596 |
event = {
|