You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of the Download method of the IFtpSession interface for the standard FtpSession class will not work consistently, because of the misuse of an async call. See the below link, but put simply, the wrapped FTP client has two methods, one synchronous, which is used correctly in the case that the Download method is processing a folder, but in the case of files, the wrapped FTP client's asynchronous method is used, which returns and then does nothing with a Task. This renders this function useless if called on anything other than a directory.
Changing the call on line 443 of FtpSession.cs from: _ftpClient.DownloadFileAsync(localPath, remotePath, overwrite ? FtpLocalExists.Overwrite : FtpLocalExists.Skip); to _ftpClient.DownloadFile(localPath, remotePath, overwrite ? FtpLocalExists.Overwrite : FtpLocalExists.Skip); should resolve the issue.
The implementation of the Download method of the IFtpSession interface for the standard FtpSession class will not work consistently, because of the misuse of an async call. See the below link, but put simply, the wrapped FTP client has two methods, one synchronous, which is used correctly in the case that the Download method is processing a folder, but in the case of files, the wrapped FTP client's asynchronous method is used, which returns and then does nothing with a Task. This renders this function useless if called on anything other than a directory.
Changing the call on line 443 of FtpSession.cs from:
_ftpClient.DownloadFileAsync(localPath, remotePath, overwrite ? FtpLocalExists.Overwrite : FtpLocalExists.Skip);
to_ftpClient.DownloadFile(localPath, remotePath, overwrite ? FtpLocalExists.Overwrite : FtpLocalExists.Skip);
should resolve the issue.Community.Activities/Activities/FTP/UiPath.FTP/FtpSession.cs
Line 443 in 67ae091
The text was updated successfully, but these errors were encountered: