AutelFileUtil
class AutelFileUtil
Description: File util class for delete, upload and download status and progress
method uploadFile
public static void uploadFile(File file, String desPath, FileListener listener)
Description: upload file to drone
Input parameters: file: source file path desPath: destination path listener: file upload listener。
Output parameter: None。
Related parameters: None。
method download
public static void download(String sourcePath, String desPath, FileListener listener)
Description: upload file to drone
Input parameters: sourcePath source path desPath: destination path listener: file upload listener。
Output parameter: None。
Related parameters: None。
method queryFile
public static void queryFile(String path, FileQueryListener listener)
Description: query file from drone
Input parameters: path path to check exist or not listener listener for file query。
Output parameter: None。
Related parameters: None。
method deleteFile
public static void deleteFile(String path, CommonCallbacks.CompletionCallbackWithParam<AutelDroneFile> completionCallbackWithParam)
Description: query file from drone
Input parameters: path path to be delete file completionCallbackWithParam callback for file deleted or not。
Output parameter: None。
Related parameters: None。