# getFileList

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

Returns an array of objects, each representing detailed information about the file. Detailed operation with them is described in the section about 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 - unique identifier of the file on the built-in HTTP server

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

  • fileName — Original file name.

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

See also: