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:
data | type | Required fields | Description |
---|---|---|---|
version | string | yes | Lite6 arm passes “lite6”, other types pass null |
user_Id | string | yes | Default pass test |
projectName | string | yes | The parent directory of the project |
filePath | string | yes | 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.