EMI.SYS.FILE.LIST

September 20th, 2009 Leave a comment Go to comments

This method returns a list of files in the local temp folder. The order of files could be random. It’s up to the client to sort the list on arrival. There are no subfolders in the temp folder.

Request Parameters

Name Type Mandatory Description
session JSON String yes Session ID

Response

Name Type Description
files JSON Array Result array

Result Array is JSON Array which contains JSON Strings. The Structure:

{
  files:
  [
    "_filename1_",
    "_filename2_",
    ...
  ]
}

Error Codes

Reference Description
EOK No errors (contains warnings)
EGENERAL Some other error
ESESSION Session with the given ID is not found

Examples

Request to EMI-RPC Server:

{
 "EMI-RPC": "1.0",
 "id": 1,
 "method": "emi.sys.file.list",
 "params": {
	"session":"some_session_id"
	}
}

Response from EMI-RPC Server:

{
 "EMI-RPC": "1.0",
 "id": 1,
 "result":
	{
	"files:["foo.bar","some.file","another.file",...]
	}
}
  1. No comments yet.
  1. No trackbacks yet.