FtpServer¶
- class mavsdk.ftp_server.FtpServer(async_plugin_manager)¶
Bases:
AsyncBaseProvide files or directories to transfer.
Generated by dcsdkgen - MAVSDK FtpServer API
- name = 'FtpServer'¶
- async set_root_dir(path)¶
Set root directory.
This is the directory that can then be accessed by a client. The directory needs to exist when this is called. The permissions are the same as the file permission for the user running the server. The root directory can’t be changed while an FTP process is in progress.
The contents of the root directory are trusted: symbolic links inside it are followed even when they point outside of the root directory. Only place symlinks there if exposing their targets to a client is intended.
- Parameters:
path (std::string) – Absolute path of folder
- Raises:
FtpServerError – If the request fails. The error contains the reason for the failure.
- exception mavsdk.ftp_server.FtpServerError(result, origin, *params)¶
Bases:
ExceptionRaised when a FtpServerResult is a fail code