Skip to content

11.ide_get_file

Get ide project file content interface:
Get the contents of the ide project file.

Message:

json
{
    "cmd": "ide_get_file",
    "data": {
        "version":"lite6",
        "user_Id":"test",
        "projectName":"BlocklyToPython",
        "filePath":"/test_0907.py"
    },
    "id": "1"
}

Request:

datatypeRequired fieldsDescription
versionstringyesLite6 arm passes “lite6”, other types pass null
user_IdstringyesDefault pass test
projectNamestringyesThe parent directory of the project
filePathstringyes Relative path to the pythonide file

Respons:

code=0->Success;
code!=0->-31 means write exception, -12 means write file does not exist, -22 means the path file is a folder.