<PackageReference Include="SSH.NET" Version="2020.0.1" />

SftpSession

protected Encoding Encoding { get; }

public uint NextRequestId { get; }

public uint ProtocolVersion { get; }

public string WorkingDirectory { get; }

public SftpSession(ISession session, int operationTimeout, Encoding encoding, ISftpResponseFactory sftpResponseFactory)

public SftpCloseAsyncResult BeginClose(byte[] handle, AsyncCallback callback, object state)

public SFtpStatAsyncResult BeginLStat(string path, AsyncCallback callback, object state)

public SftpOpenAsyncResult BeginOpen(string path, Flags flags, AsyncCallback callback, object state)

public SftpReadAsyncResult BeginRead(byte[] handle, ulong offset, uint length, AsyncCallback callback, object state)

public SftpRealPathAsyncResult BeginRealPath(string path, AsyncCallback callback, object state)

public SFtpStatAsyncResult BeginStat(string path, AsyncCallback callback, object state)

public uint CalculateOptimalReadLength(uint bufferSize)

public uint CalculateOptimalWriteLength(uint bufferSize, byte[] handle)

public void ChangeDirectory(string path)

public ISftpFileReader CreateFileReader(byte[] handle, ISftpSession sftpSession, uint chunkSize, int maxPendingReads, long? fileSize)

public void EndClose(SftpCloseAsyncResult asyncResult)

public byte[] EndOpen(SftpOpenAsyncResult asyncResult)

public byte[] EndRead(SftpReadAsyncResult asyncResult)

public string EndRealPath(SftpRealPathAsyncResult asyncResult)

public string GetCanonicalPath(string path)

public void RequestClose(byte[] handle)

public void RequestFSetStat(byte[] handle, SftpFileAttributes attributes)

public SftpFileAttributes RequestFStat(byte[] handle, bool nullOnError)

public SftpFileAttributes RequestLStat(string path)

public void RequestMkDir(string path)

public byte[] RequestOpen(string path, Flags flags, bool nullOnError = false)

public byte[] RequestOpenDir(string path, bool nullOnError = false)

public void RequestPosixRename(string oldPath, string newPath)

public byte[] RequestRead(byte[] handle, ulong offset, uint length)

public KeyValuePair<string, SftpFileAttributes>[] RequestReadDir(byte[] handle)

public void RequestRemove(string path)

public void RequestRename(string oldPath, string newPath)

public void RequestRmDir(string path)

public void RequestSetStat(string path, SftpFileAttributes attributes)

public SftpFileAttributes RequestStat(string path, bool nullOnError = false)

public SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = false)

public void RequestSymLink(string linkpath, string targetpath)

public void RequestWrite(byte[] handle, ulong serverOffset, byte[] data, int offset, int length, AutoResetEvent wait, Action<SftpStatusResponse> writeCompleted = null)