7.ide_create_file
pythonIDE create file interface:
pythonIDE creates files under the project.
Message:
json
{
"cmd": "ide_create_file",
"data": {
"version":"lite6",
"user_Id":"test",
"fileName":"3223.py",
"projectName":"BlocklyToPython",
"parentPath":"222"
},
"id": "1"
}
Request:
data | type | Required fields | Description |
---|---|---|---|
version | string | yes | Lite6 arm passes “lite6”, other types pass null |
user_Id | string | yes | Default pass test |
fileName | string | yes | The name of the file created |
projectName | string | yes | Name of the file under the project |
parentPath | string | no | Parent directory to which the created file belongs (you need to specify if yes is under the folder under the project when creating the file) |
Respons:
code=0->Success;
code!=0->Failed, -32 write file data exception.