Skip to content

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:

datatypeRequired fieldsDescription
versionstringyesLite6 arm passes “lite6”, other types pass null
user_IdstringyesDefault pass test
fileNamestringyesThe name of the file created
projectNamestringyesName of the file under the project
parentPathstringnoParent 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.