mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Update FluentFTP
This commit is contained in:
parent
c95b28685e
commit
16c1965856
2 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue