# getFileList

Description: Get a list of files that are available on the HTTP server.

msgid "Returns an array of objects, each of which represents extended information about the file. Detailed work with them is described in the section on built-in http server."

Note: XML tags should not be changed.

Request example:

{
    "method" : "getFileList",
    "requestId" : "1"
}

Response example:

{
    "method": "getFileList",
    "requestId" : "1",
    "fileList":
    [
        {
            "fileId": "1",
            "fileName": "TeamViewer_Setup.exe"
        },
        {
            "fileId": "2",
            "fileName": "734.exe"
        },
        {
            "fileId": "3",
            "fileName": "258.exe"
        },
        {
            "fileId": "4",
            "fileName": "Screenshot (1).png"
        }
    ],
    "result": true
}

Parameter description:

  • fileId - unique identifier of the file on built-in http server

  • fileList — the list of files available on the built-in HTTP server

  • fileName — Original file name.

  • requestId - unique request identifier. More details can be found here

See also: