tribler.core.restapi.file_endpoint
Classes
This endpoint allows clients to view the server's file structure remotely. |
Module Contents
- class tribler.core.restapi.file_endpoint.FileEndpoint
Bases:
tribler.core.restapi.rest_endpoint.RESTEndpointThis endpoint allows clients to view the server’s file structure remotely.
- path = '/api/files'
- _logger
- async browse(request: aiohttp.web.Request) tribler.core.restapi.rest_endpoint.RESTResponse
Return all files/directories found in the specified path.
- async list(request: aiohttp.web.Request) tribler.core.restapi.rest_endpoint.RESTResponse
Return all files found in the specified path.
- async create(request: aiohttp.web.Request) tribler.core.restapi.rest_endpoint.RESTResponse
Create the specified path.