Ramesh-vani commited on
Commit
9c701be
·
verified ·
1 Parent(s): fad8012

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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', encoding='utf-8') as file:
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 = {