Update FluentFTP

This commit is contained in:
Jaex 2022-06-08 16:37:13 +03:00
parent c95b28685e
commit 16c1965856
2 changed files with 1 additions and 5 deletions

View file

@ -255,12 +255,10 @@ public bool UploadData(Stream localStream, string remotePath)
private bool UploadDataInternal(Stream localStream, string remotePath)
{
bool result;
#pragma warning disable 0618
using (Stream remoteStream = client.OpenWrite(remotePath))
{
result = TransferData(localStream, remoteStream);
}
#pragma warning restore 0618
FtpReply ftpReply = client.GetReply();
return result && ftpReply.Success;
}
@ -327,12 +325,10 @@ public void DownloadFile(string remotePath, Stream localStream)
{
if (Connect())
{
#pragma warning disable 0618
using (Stream remoteStream = client.OpenRead(remotePath))
{
TransferData(remoteStream, localStream);
}
#pragma warning restore 0618
client.GetReply();
}
}

View file

@ -1080,7 +1080,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentFTP">
<Version>37.0.2</Version>
<Version>37.0.3</Version>
</PackageReference>
<PackageReference Include="MegaApiClient">
<Version>1.10.2</Version>