mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #696] FtpClient - Missing Objects/Methods #2491
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#2491
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GlacierDataworks on GitHub (Aug 4, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/696
Originally assigned to: @VShawn on GitHub.
Describe the bug
FtpFileSystemObjectType does not exist.
FtpClient does not contain a definition for UploadFileAsync and DownloadFileAsync
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build without error
Screenshots

Desktop (please complete the following information):
Additional context
I think the FTPClient needs to be AsyncFtpClient instead of FtpClient, but that doesn't solve all the issues. I'm still working on how to make the async methods run.
Thanks
@GlacierDataworks commented on GitHub (Aug 4, 2024):
Changed _ftp type from FtpClient to AsyncFtpClient.
FtpFileSystemObjectType was renamed to FtpObjectType.
Removed Async from UploadFile and DownloadFile method names.
Now it builds just fine!
@VShawn commented on GitHub (Aug 9, 2024):
maybe you can make a PR for this :)
@GlacierDataworks commented on GitHub (Aug 9, 2024):
I got a good build, but have not tested any of it yet. I'd hate to introduce other bugs because it wasn't tested.
@GlacierDataworks commented on GitHub (Aug 9, 2024):
This is the file that changed.
Pam
From: VShawn @.>
Sent: Thursday, August 8, 2024 10:06 PM
To: 1Remote/1Remote @.>
Cc: Glacier Dataworks @.>; Author @.>
Subject: Re: [1Remote/1Remote] FtpClient - Missing Objects/Methods (Issue #696)
maybe you can make a PR for this :)
—
Reply to this email directly, view it on GitHub https://github.com/1Remote/1Remote/issues/696#issuecomment-2277392349 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUFZJQT4GRSXYMFWYHJQ75LZQRZ57AVCNFSM6AAAAABL7EIYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGM4TEMZUHE .
You are receiving this because you authored the thread.Message ID: @.***>
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using FluentFTP;
using Shawn.Utils;
namespace _1RM.Model.Protocol.FileTransmit.Transmitters
{
public class TransmitterFtp : ITransmitter
{
public readonly string Hostname;
public readonly int Port;
public readonly string Username;
public readonly string Password;
private AsyncFtpClient? _ftp = null;
}