sshnet / sshnet/SSH.NET

ScpClient: Uploading and Downloading events should provide absolute local and remote path

Offen
#287 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@drieseng arbeitet bereits daran.

Seit 26.8.2017.

enhancement
Vorherrschende Sprache
C#
Sterne
4.4k
Forks
993
Ø Merge
9 T. 21 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Problem

Right now, the ScpDownloadEventArgs and ScpUploadEventArgs classes only have a single Filename property that contains the only file name of the local or remote file that this being downloaded or download.

For the Download overloads, ScpDownloadEventArgs.Filename always contains the file name of the remote file that is being downloaded.

For the Upload overloads, there's little consistency in the value of ScpUploadEventArgs.Filename:

  • For Upload(FileInfo fileInfo, string path), its value is the file name of the local file.
  • For Upload(Stream source, string path) and Upload(DirectoryInfo directoryInfo, string path), its value is the file name of the remote file (which is the only path available).

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.