Skip to content

Commit

Permalink
feat: add commands to file transfer protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Nov 5, 2023
1 parent 674c5b9 commit 6fc7e24
Showing 1 changed file with 96 additions and 1 deletion.
97 changes: 96 additions & 1 deletion example/file_transfer.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,101 @@
"parentName": "NONE",
"size": 2
},
{
"attributes": [
{
"dataType": "LCSF_STRING",
"desc": "Path of the directory to change to",
"id": 0,
"isOptional": false,
"name": "path",
"size": 0
}
],
"description": "Change directory request",
"direction": 2,
"hasAtt": true,
"id": 5,
"name": "cd",
"parentName": "NONE",
"size": 1
},
{
"attributes": [
{
"dataType": "LCSF_STRING",
"desc": "Path to list the elements (default will be current directory)",
"id": 0,
"isOptional": true,
"name": "path",
"size": 0
}
],
"description": "List element request",
"direction": 2,
"hasAtt": true,
"id": 6,
"name": "ls",
"parentName": "NONE",
"size": 1
},
{
"attributes": [
{
"dataType": "LCSF_STRING",
"desc": "List of comma separated file names, can be empty",
"id": 0,
"isOptional": false,
"name": "files",
"size": 0
},
{
"dataType": "LCSF_STRING",
"desc": "List of comma separated directory names, can be empty ",
"id": 1,
"isOptional": false,
"name": "directories",
"size": 0
}
],
"description": "List element response",
"direction": 2,
"hasAtt": true,
"id": 7,
"name": "ls_resp",
"parentName": "NONE",
"size": 2
},
{
"attributes": [
],
"description": "Current directory request",
"direction": 2,
"hasAtt": false,
"id": 8,
"name": "pwd",
"parentName": "NONE",
"size": 0
},
{
"attributes": [
{
"dataType": "LCSF_STRING",
"desc": "Path of the current directory",
"id": 0,
"isOptional": false,
"name": "path",
"size": 0
}
],
"description": "Current directory response",
"direction": 2,
"hasAtt": true,
"id": 9,
"name": "pwd_resp",
"parentName": "NONE",
"size": 1
},
{
"attributes": [
{
Expand All @@ -197,7 +292,7 @@
"description": "Protocol level error",
"direction": 2,
"hasAtt": true,
"id": 5,
"id": 10,
"name": "error",
"parentName": "NONE",
"size": 1
Expand Down

0 comments on commit 6fc7e24

Please sign in to comment.