public async void MakeSubDirectoryAsync(string ip, string remoteFilePath, string userName, string password, bool isUsePassive, CallbackContext callbackContext) { try { m_Logger.Debug($"ip:{ip},remoteFilePath:{remoteFilePath}"); FTPClient ftpClient = new FTPClient($"ftp://{ip}"); await ftpClient.CheckDirectoryAsync(remoteFilePath, userName, password, isUsePassive); callbackContext.Success(); } catch (Exception e) { m_Logger.Error(e); callbackContext.Error(new { type = "Exception", code = "", message = e.Message, details = e.StackTrace }); } }