getFileList

TrueConfLess than 1 minute

getFileList

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

An array of objects is returned, each representing detailed information about a file. Detailed handling of these objects is described in the section on the built-in HTTP server.

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 - a unique identifier for the file on the embedded HTTP server

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

  • fileName — Original file name.

  • requestId - a unique request identifier. You can find more details about it here.

See also: