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

ISftpSession

uint ProtocolVersion { get; }

string WorkingDirectory { get; }

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

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

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

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

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

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

uint CalculateOptimalReadLength(uint bufferSize)

uint CalculateOptimalWriteLength(uint bufferSize, byte[] handle)

void ChangeDirectory(string path)

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

void EndClose(SftpCloseAsyncResult asyncResult)

byte[] EndOpen(SftpOpenAsyncResult asyncResult)

byte[] EndRead(SftpReadAsyncResult asyncResult)

string GetCanonicalPath(string path)

Task<string> GetCanonicalPathAsync(string path, CancellationToken cancellationToken)

void RequestClose(byte[] handle)

Task RequestCloseAsync(byte[] handle, CancellationToken cancellationToken)

void RequestFSetStat(byte[] handle, SftpFileAttributes attributes)

SftpFileAttributes RequestFStat(byte[] handle, bool nullOnError)

Task<SftpFileAttributes> RequestFStatAsync(byte[] handle, CancellationToken cancellationToken)

void RequestMkDir(string path)

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

Task<byte[]> RequestOpenAsync(string path, Flags flags, CancellationToken cancellationToken)

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

Task<byte[]> RequestOpenDirAsync(string path, CancellationToken cancellationToken)

void RequestPosixRename(string oldPath, string newPath)

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

Task<byte[]> RequestReadAsync(byte[] handle, ulong offset, uint length, CancellationToken cancellationToken)

Task<KeyValuePair<string, SftpFileAttributes>[]> RequestReadDirAsync(byte[] handle, CancellationToken cancellationToken)

void RequestRemove(string path)

Task RequestRemoveAsync(string path, CancellationToken cancellationToken)

void RequestRename(string oldPath, string newPath)

Task RequestRenameAsync(string oldPath, string newPath, CancellationToken cancellationToken)

void RequestRmDir(string path)

void RequestSetStat(string path, SftpFileAttributes attributes)

SftpFileAttributes RequestStat(string path, bool nullOnError = false)

SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = false)

void RequestSymLink(string linkpath, string targetpath)

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

Task RequestWriteAsync(byte[] handle, ulong serverOffset, byte[] data, int offset, int length, CancellationToken cancellationToken)